From fb1ed61e22843d3cbe571573c7341cbab052e56e Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Sun, 5 Dec 2021 10:14:17 -0800 Subject: [PATCH 1/3] Add calculated bitrate in mesh.proto --- mesh.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mesh.proto b/mesh.proto index fe09450..93ac005 100644 --- a/mesh.proto +++ b/mesh.proto @@ -933,6 +933,11 @@ message MyNodeInfo { */ uint32 reboot_count = 10; + /* + * Calculated bitrate of the current channel (in kbps) + */ + float bitrate = 11; + /* * How long before we consider a message abandoned and we can clear our * caches of any messages in flight Normally quite large to handle the worst case From de734f7c32c853bb0c92e3f441eb95c6d940ecdf Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Sun, 5 Dec 2021 10:40:30 -0800 Subject: [PATCH 2/3] Update comment for bitrate --- mesh.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh.proto b/mesh.proto index 93ac005..865053f 100644 --- a/mesh.proto +++ b/mesh.proto @@ -934,7 +934,7 @@ message MyNodeInfo { uint32 reboot_count = 10; /* - * Calculated bitrate of the current channel (in kbps) + * Calculated bitrate of the current channel (in Bytes Per Second) */ float bitrate = 11; From acc993ebd5099d53fa4e267f1c2e719c64890fc4 Mon Sep 17 00:00:00 2001 From: Joshua Pirihi Date: Mon, 6 Dec 2021 14:44:27 +1300 Subject: [PATCH 3/3] Add on_battery_shutdown_after_secs preference --- radioconfig.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radioconfig.proto b/radioconfig.proto index 566e32d..d95ac13 100644 --- a/radioconfig.proto +++ b/radioconfig.proto @@ -569,6 +569,12 @@ message RadioConfig { * Potentially useful for devices without user buttons. */ uint32 auto_screen_carousel_secs = 152; + + /* + * If non-zero, the device will fully power off this many seconds after external power is removed. + * + */ + uint32 on_battery_shutdown_after_secs = 153; } UserPreferences preferences = 1;