* companion: protocol ver bump to 5

* companion: new prefs: telemetry_mode_base, telemetry_mode_loc
* companion: CMD_SET_OTHER_PARAMS, now optionally can set telemetry_modes
This commit is contained in:
Scott Powell
2025-05-05 11:21:55 +10:00
parent e442e94e3d
commit cb80ceee47
3 changed files with 44 additions and 13 deletions

View File

@@ -3,6 +3,10 @@
#include <cstdint> // For uint8_t, uint32_t
#define TELEM_MODE_DENY 0
#define TELEM_MODE_ALLOW_FLAGS 1 // use contact.flags
#define TELEM_MODE_ALLOW_ALL 2
struct NodePrefs { // persisted to file
float airtime_factor;
char node_name[32];
@@ -13,7 +17,8 @@ struct NodePrefs { // persisted to file
uint8_t manual_add_contacts;
float bw;
uint8_t tx_power_dbm;
uint8_t unused[3];
uint8_t telemetry_mode_base;
uint8_t telemetry_mode_loc;
float rx_delay_base;
uint32_t ble_pin;
};