Merge pull request #167 from meshtastic/low-power

Consolidate is_lower_power and is_power_saving
pull/168/head
Ben Meadors 2022-06-12 15:55:37 -05:00 zatwierdzone przez GitHub
commit 8f616d3eef
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 6 usunięć

Wyświetl plik

@ -290,7 +290,7 @@ message Config {
* we should try to minimize power consumption as much as possible. * we should try to minimize power consumption as much as possible.
* YOU DO NOT NEED TO SET THIS IF YOU'VE set is_router (it is implied in that case). * YOU DO NOT NEED TO SET THIS IF YOU'VE set is_router (it is implied in that case).
*/ */
bool is_low_power = 2; bool is_power_saving = 2;
/* /*
* Circumvents the logic block for determining whether the device is powered or not. * Circumvents the logic block for determining whether the device is powered or not.
@ -304,11 +304,6 @@ message Config {
*/ */
uint32 on_battery_shutdown_after_secs = 4; uint32 on_battery_shutdown_after_secs = 4;
/*
* If set to true, enable power saving features of the esp32
*/
bool is_power_saving = 5;
/* /*
* Ratio of voltage divider for battery pin eg. 3.20 (R1=100k, R2=220k) * Ratio of voltage divider for battery pin eg. 3.20 (R1=100k, R2=220k)
* Overrides the ADC_MULTIPLIER defined in variant for battery voltage calculation. * Overrides the ADC_MULTIPLIER defined in variant for battery voltage calculation.