kopia lustrzana https://github.com/SP8EBC/ParaTNC
daily
rodzic
86818e8991
commit
6648c8cc54
|
@ -9,7 +9,7 @@
|
|||
#define SOFTWARE_VERSION_H_
|
||||
|
||||
#define SW_VER "EB02"
|
||||
#define SW_DATE "28102023"
|
||||
#define SW_DATE "29102023"
|
||||
#define SW_KISS_PROTO "B"
|
||||
|
||||
extern const char software_version_str[5];
|
||||
|
|
|
@ -599,6 +599,15 @@ void pwr_save_switch_mode_to_l6(uint16_t sleep_time) {
|
|||
|
||||
backup_reg_set_monitor(28);
|
||||
|
||||
// turn off leds to save power
|
||||
it_handlers_inhibit_radiomodem_dcd_led = 1;
|
||||
led_control_led1_upper(false);
|
||||
led_control_led2_bottom(false);
|
||||
led_deinit();
|
||||
|
||||
// disconnect APRS-IS connection if it is established
|
||||
aprsis_disconnect();
|
||||
|
||||
// disable ADC used for vbat measurement
|
||||
io_vbat_meas_disable();
|
||||
|
||||
|
@ -651,12 +660,6 @@ void pwr_save_switch_mode_to_l6(uint16_t sleep_time) {
|
|||
// save how long the micro will sleep - required for handling wakeup event
|
||||
pwr_save_sleep_time_in_seconds = sleep_time;
|
||||
|
||||
// turn off leds to save power
|
||||
it_handlers_inhibit_radiomodem_dcd_led = 1;
|
||||
led_control_led1_upper(false);
|
||||
led_control_led2_bottom(false);
|
||||
led_deinit();
|
||||
|
||||
pwr_save_enter_stop2();
|
||||
|
||||
backup_reg_set_monitor(27);
|
||||
|
@ -689,6 +692,12 @@ void pwr_save_switch_mode_to_l7(uint16_t sleep_time) {
|
|||
|
||||
backup_reg_set_monitor(26);
|
||||
|
||||
// turn off leds to save power
|
||||
it_handlers_inhibit_radiomodem_dcd_led = 1;
|
||||
led_control_led1_upper(false);
|
||||
led_control_led2_bottom(false);
|
||||
led_deinit();
|
||||
|
||||
// disconnect APRS-IS connection if it is established
|
||||
aprsis_disconnect();
|
||||
|
||||
|
@ -740,12 +749,6 @@ void pwr_save_switch_mode_to_l7(uint16_t sleep_time) {
|
|||
// save how long the micro will sleep - required for handling wakeup event
|
||||
pwr_save_sleep_time_in_seconds = sleep_time;
|
||||
|
||||
// turn off leds to save power
|
||||
it_handlers_inhibit_radiomodem_dcd_led = 1;
|
||||
led_control_led1_upper(false);
|
||||
led_control_led2_bottom(false);
|
||||
led_deinit();
|
||||
|
||||
pwr_save_enter_stop2();
|
||||
|
||||
backup_reg_set_monitor(25);
|
||||
|
@ -825,7 +828,9 @@ config_data_powersave_mode_t pwr_save_pooling_handler( const config_data_mode_t
|
|||
uint16_t vbatt_current) {
|
||||
// this function should be called from 10 seconds pooler
|
||||
|
||||
int reinit_sensors = 0;
|
||||
int8_t reinit_sensors = 0;
|
||||
|
||||
int8_t reconnect_aprs = 0;
|
||||
|
||||
packet_tx_counter_values_t counters;
|
||||
|
||||
|
@ -1033,6 +1038,9 @@ config_data_powersave_mode_t pwr_save_pooling_handler( const config_data_mode_t
|
|||
|
||||
// if there is more than two minutes to send wx packet
|
||||
pwr_save_switch_mode_to_l7((timers->wx_transmit_period * 60) - 120);
|
||||
|
||||
// GSM module is kept turned on, but the connection must be reastablished
|
||||
reconnect_aprs = 1;
|
||||
}
|
||||
else {
|
||||
// TODO: Workaround here for HW-RevB!!!
|
||||
|
|
Ładowanie…
Reference in New Issue