mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-18 11:13:29 +00:00
Remove send owner interval (#1361)
* NodeInfo slimfast * Removed send_owner_interval
This commit is contained in:
parent
eae9673ddb
commit
10a7071300
2
proto
2
proto
@ -1 +1 @@
|
|||||||
Subproject commit e1ef519d07b180a05298857374fd60a6165b7a75
|
Subproject commit c6abcf8d6b9c9dec630381c50198bed92258d4e8
|
@ -146,7 +146,6 @@ extern NodeDB nodeDB;
|
|||||||
|
|
||||||
prefs.ls_secs = oneday
|
prefs.ls_secs = oneday
|
||||||
|
|
||||||
prefs.send_owner_interval = 2 # Send an owner packet every other network ping
|
|
||||||
prefs.position_broadcast_secs = 12 hours # send either position or owner every 12hrs
|
prefs.position_broadcast_secs = 12 hours # send either position or owner every 12hrs
|
||||||
|
|
||||||
# get a new GPS position once per day
|
# get a new GPS position once per day
|
||||||
@ -166,7 +165,6 @@ extern NodeDB nodeDB;
|
|||||||
#define PREF_GET(name, defaultVal) \
|
#define PREF_GET(name, defaultVal) \
|
||||||
inline uint32_t getPref_##name() { return radioConfig.preferences.name ? radioConfig.preferences.name : (defaultVal); }
|
inline uint32_t getPref_##name() { return radioConfig.preferences.name ? radioConfig.preferences.name : (defaultVal); }
|
||||||
|
|
||||||
PREF_GET(send_owner_interval, IF_ROUTER(2, 4))
|
|
||||||
PREF_GET(position_broadcast_secs, IF_ROUTER(12 * 60 * 60, 15 * 60))
|
PREF_GET(position_broadcast_secs, IF_ROUTER(12 * 60 * 60, 15 * 60))
|
||||||
// Defaulting Telemetry to the same as position interval for now
|
// Defaulting Telemetry to the same as position interval for now
|
||||||
PREF_GET(telemetry_module_device_update_interval, IF_ROUTER(12 * 60 * 60, 15 * 60))
|
PREF_GET(telemetry_module_device_update_interval, IF_ROUTER(12 * 60 * 60, 15 * 60))
|
||||||
|
@ -129,7 +129,7 @@ extern const pb_msgdesc_t AdminMessage_msg;
|
|||||||
#define AdminMessage_fields &AdminMessage_msg
|
#define AdminMessage_fields &AdminMessage_msg
|
||||||
|
|
||||||
/* Maximum encoded size of messages (where known) */
|
/* Maximum encoded size of messages (where known) */
|
||||||
#define AdminMessage_size 610
|
#define AdminMessage_size 604
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
|
@ -260,7 +260,6 @@ typedef enum _RadioConfig_UserPreferences_TelemetrySensorType {
|
|||||||
/* Struct definitions */
|
/* Struct definitions */
|
||||||
typedef struct _RadioConfig_UserPreferences {
|
typedef struct _RadioConfig_UserPreferences {
|
||||||
uint32_t position_broadcast_secs;
|
uint32_t position_broadcast_secs;
|
||||||
uint32_t send_owner_interval;
|
|
||||||
uint32_t wait_bluetooth_secs;
|
uint32_t wait_bluetooth_secs;
|
||||||
uint32_t screen_on_secs;
|
uint32_t screen_on_secs;
|
||||||
uint32_t phone_timeout_secs;
|
uint32_t phone_timeout_secs;
|
||||||
@ -401,13 +400,12 @@ extern "C" {
|
|||||||
|
|
||||||
/* Initializer values for message structs */
|
/* Initializer values for message structs */
|
||||||
#define RadioConfig_init_default {false, RadioConfig_UserPreferences_init_default}
|
#define RadioConfig_init_default {false, RadioConfig_UserPreferences_init_default}
|
||||||
#define RadioConfig_UserPreferences_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, _RegionCode_MIN, _ChargeCurrent_MIN, 0, _Role_MIN, 0, 0, 0, 0, 0, 0, 0, 0, "", 0, _GpsCoordinateFormat_MIN, 0, 0, 0, 0, 0, {0, 0, 0}, 0, 0, 0, 0, 0, _RadioConfig_UserPreferences_Serial_Mode_MIN, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _RadioConfig_UserPreferences_TelemetrySensorType_MIN, 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, _InputEventChar_MIN, _InputEventChar_MIN, _InputEventChar_MIN, 0, 0, "", 0, 0, 0, _RadioConfig_UserPreferences_Serial_Baud_MIN, 0}
|
#define RadioConfig_UserPreferences_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, _RegionCode_MIN, _ChargeCurrent_MIN, 0, _Role_MIN, 0, 0, 0, 0, 0, 0, 0, 0, "", 0, _GpsCoordinateFormat_MIN, 0, 0, 0, 0, 0, {0, 0, 0}, 0, 0, 0, 0, 0, _RadioConfig_UserPreferences_Serial_Mode_MIN, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _RadioConfig_UserPreferences_TelemetrySensorType_MIN, 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, _InputEventChar_MIN, _InputEventChar_MIN, _InputEventChar_MIN, 0, 0, "", 0, 0, 0, _RadioConfig_UserPreferences_Serial_Baud_MIN, 0}
|
||||||
#define RadioConfig_init_zero {false, RadioConfig_UserPreferences_init_zero}
|
#define RadioConfig_init_zero {false, RadioConfig_UserPreferences_init_zero}
|
||||||
#define RadioConfig_UserPreferences_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, _RegionCode_MIN, _ChargeCurrent_MIN, 0, _Role_MIN, 0, 0, 0, 0, 0, 0, 0, 0, "", 0, _GpsCoordinateFormat_MIN, 0, 0, 0, 0, 0, {0, 0, 0}, 0, 0, 0, 0, 0, _RadioConfig_UserPreferences_Serial_Mode_MIN, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _RadioConfig_UserPreferences_TelemetrySensorType_MIN, 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, _InputEventChar_MIN, _InputEventChar_MIN, _InputEventChar_MIN, 0, 0, "", 0, 0, 0, _RadioConfig_UserPreferences_Serial_Baud_MIN, 0}
|
#define RadioConfig_UserPreferences_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, _RegionCode_MIN, _ChargeCurrent_MIN, 0, _Role_MIN, 0, 0, 0, 0, 0, 0, 0, 0, "", 0, _GpsCoordinateFormat_MIN, 0, 0, 0, 0, 0, {0, 0, 0}, 0, 0, 0, 0, 0, _RadioConfig_UserPreferences_Serial_Mode_MIN, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _RadioConfig_UserPreferences_TelemetrySensorType_MIN, 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, _InputEventChar_MIN, _InputEventChar_MIN, _InputEventChar_MIN, 0, 0, "", 0, 0, 0, _RadioConfig_UserPreferences_Serial_Baud_MIN, 0}
|
||||||
|
|
||||||
/* Field tags (for use in manual encoding/decoding) */
|
/* Field tags (for use in manual encoding/decoding) */
|
||||||
#define RadioConfig_UserPreferences_position_broadcast_secs_tag 1
|
#define RadioConfig_UserPreferences_position_broadcast_secs_tag 1
|
||||||
#define RadioConfig_UserPreferences_send_owner_interval_tag 2
|
|
||||||
#define RadioConfig_UserPreferences_wait_bluetooth_secs_tag 4
|
#define RadioConfig_UserPreferences_wait_bluetooth_secs_tag 4
|
||||||
#define RadioConfig_UserPreferences_screen_on_secs_tag 5
|
#define RadioConfig_UserPreferences_screen_on_secs_tag 5
|
||||||
#define RadioConfig_UserPreferences_phone_timeout_secs_tag 6
|
#define RadioConfig_UserPreferences_phone_timeout_secs_tag 6
|
||||||
@ -502,7 +500,6 @@ X(a, STATIC, OPTIONAL, MESSAGE, preferences, 1)
|
|||||||
|
|
||||||
#define RadioConfig_UserPreferences_FIELDLIST(X, a) \
|
#define RadioConfig_UserPreferences_FIELDLIST(X, a) \
|
||||||
X(a, STATIC, SINGULAR, UINT32, position_broadcast_secs, 1) \
|
X(a, STATIC, SINGULAR, UINT32, position_broadcast_secs, 1) \
|
||||||
X(a, STATIC, SINGULAR, UINT32, send_owner_interval, 2) \
|
|
||||||
X(a, STATIC, SINGULAR, UINT32, wait_bluetooth_secs, 4) \
|
X(a, STATIC, SINGULAR, UINT32, wait_bluetooth_secs, 4) \
|
||||||
X(a, STATIC, SINGULAR, UINT32, screen_on_secs, 5) \
|
X(a, STATIC, SINGULAR, UINT32, screen_on_secs, 5) \
|
||||||
X(a, STATIC, SINGULAR, UINT32, phone_timeout_secs, 6) \
|
X(a, STATIC, SINGULAR, UINT32, phone_timeout_secs, 6) \
|
||||||
@ -597,8 +594,8 @@ extern const pb_msgdesc_t RadioConfig_UserPreferences_msg;
|
|||||||
#define RadioConfig_UserPreferences_fields &RadioConfig_UserPreferences_msg
|
#define RadioConfig_UserPreferences_fields &RadioConfig_UserPreferences_msg
|
||||||
|
|
||||||
/* Maximum encoded size of messages (where known) */
|
/* Maximum encoded size of messages (where known) */
|
||||||
#define RadioConfig_UserPreferences_size 604
|
#define RadioConfig_UserPreferences_size 598
|
||||||
#define RadioConfig_size 607
|
#define RadioConfig_size 601
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
|
Loading…
Reference in New Issue
Block a user