fprintf(stderr,"Battery is being charged - switch battery saver off\n");
fprintf(stderr,"Battery is being charged - switch battery saver off\n");
if(battery_saver_mode==ON)
if(battery_saver_mode==ON)
battery_saver(OFF);
battery_saver(OFF);
}
}
if((batteryCurrent>currentThreshold)&&(batteryVoltage<voltageThreshold)&&!sim_mode)// currentThreshold ensures that this won't happen when running on DC power.
if((batteryCurrent>currentThreshold)&&(batteryVoltage<voltageThreshold)&&!sim_mode&&!hab_mode)// currentThreshold ensures that this won't happen when running on DC power.
{
{
fprintf(stderr,"Battery voltage too low: %f V - shutting down!\n",batteryVoltage);
fprintf(stderr,"Battery voltage too low: %f V - shutting down!\n",batteryVoltage);
digitalWrite(txLed,txLedOff);
digitalWrite(txLed,txLedOff);
@ -1047,11 +1054,13 @@ void get_tlm(void) {
if(ax5043)
if(ax5043)
sprintf(header_str2b,"=%s%c%sShi hi ",header_lat,0x5c,header_long);// add APRS lat and long
sprintf(header_str2b,"=%s%c%sShi hi ",header_lat,0x5c,header_long);// add APRS lat and long
else
else
#ifdef HAB
//#ifdef HAB
sprintf(header_str2b,"=%s%c%sOhi hi ",header_lat,0x2f,header_long);// add APRS lat and long with Balloon HAB icon
if(hab_mode)
#else
sprintf(header_str2b,"=%s%c%sOhi hi ",header_lat,0x2f,header_long);// add APRS lat and long with Balloon HAB icon
sprintf(header_str2b,"=%s%c%c%sShi hi ",header_lat,0x5c,0x5c,header_long);// add APRS lat and long with Satellite icon
//#else
#endif
else
sprintf(header_str2b,"=%s%c%c%sShi hi ",header_lat,0x5c,0x5c,header_long);// add APRS lat and long with Satellite icon