Report special battery_level of > 100 instead of zero to indicate USB (#2341)

* Report special battery_level of > 100 instead of zero to indicate USB

* Protos

* Helps if you click save

* Wrong method

* Fmt
This commit is contained in:
Ben Meadors
2023-03-10 19:50:08 -06:00
committed by GitHub
parent fddc49273e
commit dc2ca9c32b
3 changed files with 10 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ typedef enum _meshtastic_TelemetrySensorType {
/* Struct definitions */
/* Key native device metrics such as battery level */
typedef struct _meshtastic_DeviceMetrics {
/* 1-100 (0 means powered) */
/* 0-100 (>100 means powered) */
uint32_t battery_level;
/* Voltage measured */
float voltage;