less restricted _POWERSAVE_NORMAL in wx only

pull/7/head
Mateusz Lubecki 2022-01-12 18:37:10 +01:00
rodzic a74c08dc15
commit 2968089133
3 zmienionych plików z 7 dodań i 9 usunięć

Wyświetl plik

@ -5,8 +5,8 @@
#include "drivers/serial.h"
#include "config_data.h"
#define SW_VER "EA03"
#define SW_DATE "09012022"
#define SW_VER "EA04"
#define SW_DATE "12012022"
#define SYSTICK_TICKS_PER_SECONDS 100
#define SYSTICK_TICKS_PERIOD 10

Wyświetl plik

@ -88,7 +88,7 @@
* | WX + GSM (only) | PWSAVE_AGGRESV | L6 --- (1 minute before WX frame)---> C0 -> L6 ; if WX_INTERVAL < 5 minutes |
* | WX + GSM (only) | PWSAVE_AGGRESV | L7 --- (1 minute before WX frame)---> M4 --- (30 sec before)---> C0 -> L7 |
* | WX | PWSAVE_NONE | M4 --- (2 minute before WX frame)---> C1 -> M4 |
* | WX | PWSAVE_NORMAL | M4 --- (1 minute before WX frame)---> C1 -> M4 |
* | WX | PWSAVE_NORMAL | L7 --- (2 minute before WX frame)---> C1 -> L7 |
* | WX | PWSAVE_AGGRESV | L7 --- (1 minute before WX frame)---> M4 --- (30 sec before)---> C1 -> L7 |
* ====================================================================================================================================|
*

Wyświetl plik

@ -586,14 +586,12 @@ void pwr_save_pooling_handler(const config_data_mode_t * config, const config_da
}
}
else { // WX
if (minutes_to_wx > 1) {
// if there is more than one minute to send wx packet
reinit_sensors = pwr_save_switch_mode_to_m4();
if (minutes_to_wx > 2) {
// if there is more than two minutes to send wx packet
pwr_save_switch_mode_to_l7((timers->wx_transmit_period * 60) - 120);
}
else {
if (pwr_save_seconds_to_wx <= 30) {
reinit_sensors = pwr_save_switch_mode_to_c1();
}
reinit_sensors= pwr_save_switch_mode_to_c1();
}
}
}