gps_cli: gps advert to control advert location policy

This commit is contained in:
Florent
2025-10-11 19:00:02 +02:00
parent f6064b41e9
commit bf1da43d7d
5 changed files with 72 additions and 8 deletions

View File

@@ -8,6 +8,10 @@
#define WITH_BRIDGE
#endif
#define ADVERT_LOC_NONE 0
#define ADVERT_LOC_SHARE 1
#define ADVERT_LOC_PREFS 2
struct NodePrefs { // persisted to file
float airtime_factor;
char node_name[32];
@@ -41,6 +45,7 @@ struct NodePrefs { // persisted to file
// Gps settings
uint8_t gps_enabled;
uint32_t gps_interval; // in seconds
uint8_t advert_loc_policy;
};
class CommonCLICallbacks {