#615 - Allow rate for tbeam battery charger to be configurable

pull/7/head
Jm Casler 2021-01-16 14:49:58 -08:00 zatwierdzone przez GitHub
rodzic 84506adc78
commit 0977dfd894
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 27 dodań i 0 usunięć

Wyświetl plik

@ -482,6 +482,30 @@ enum RegionCode {
// Add new regions here
}
/**
Sets the charge control current of devices with a battery charger that can be
configured. This is passed into the axp power management chip like on the tbeam.
*/
enum ChargeCurrent {
Unset = 0;
100MA = 1;
190MA = 2;
280MA = 3;
360MA = 4;
450MA = 5;
550MA = 6;
630MA = 7;
700MA = 8;
780MA = 9;
880MA = 10;
960MA = 11;
1000MA = 12;
1080MA = 13;
1160MA = 14;
1240MA = 15;
1320MA = 16;
}
/**
How the GPS hardware in this unit is operated.
@ -565,6 +589,9 @@ message RadioConfig {
/// The region code for my radio (US, CN, EU433, etc...)
RegionCode region = 15;
/** Sets the current of the battery charger */
ChargeCurrent charge_current = 16;
/**
Are we operating as a router. Changes behavior in the following ways:
The device will only sleep for critically low battery level (i.e. always tries to stay alive for the mesh)