mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-30 02:15:41 +00:00
Set firmware edition (for events) from userprefs
This commit is contained in:
parent
aa3b14ce72
commit
7c2b067a8f
@ -406,6 +406,9 @@ NodeDB::NodeDB()
|
|||||||
config.position.gps_mode = meshtastic_Config_PositionConfig_GpsMode_ENABLED;
|
config.position.gps_mode = meshtastic_Config_PositionConfig_GpsMode_ENABLED;
|
||||||
config.position.gps_enabled = 0;
|
config.position.gps_enabled = 0;
|
||||||
}
|
}
|
||||||
|
#ifdef USERPREFS_FIRMWARE_EDITION
|
||||||
|
myNodeInfo.firmware_edition = USERPREFS_FIRMWARE_EDITION;
|
||||||
|
#endif
|
||||||
#ifdef USERPREFS_FIXED_GPS
|
#ifdef USERPREFS_FIXED_GPS
|
||||||
if (myNodeInfo.reboot_count == 1) { // Check if First boot ever or after Factory Reset.
|
if (myNodeInfo.reboot_count == 1) { // Check if First boot ever or after Factory Reset.
|
||||||
meshtastic_Position fixedGPS = meshtastic_Position_init_default;
|
meshtastic_Position fixedGPS = meshtastic_Position_init_default;
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
// "USERPREFS_CONFIG_OWNER_SHORT_NAME": "MLN",
|
// "USERPREFS_CONFIG_OWNER_SHORT_NAME": "MLN",
|
||||||
// "USERPREFS_CONFIG_DEVICE_ROLE": "meshtastic_Config_DeviceConfig_Role_CLIENT", // Defaults to CLIENT. ROUTER*, LOST AND FOUND, and REPEATER roles are restricted.
|
// "USERPREFS_CONFIG_DEVICE_ROLE": "meshtastic_Config_DeviceConfig_Role_CLIENT", // Defaults to CLIENT. ROUTER*, LOST AND FOUND, and REPEATER roles are restricted.
|
||||||
// "USERPREFS_EVENT_MODE": "1",
|
// "USERPREFS_EVENT_MODE": "1",
|
||||||
|
//"USERPREFS_FIRMWARE_EDITION": "meshtastic_FirmwareEdition_BURNING_MAN",
|
||||||
// "USERPREFS_FIXED_BLUETOOTH": "121212",
|
// "USERPREFS_FIXED_BLUETOOTH": "121212",
|
||||||
// "USERPREFS_FIXED_GPS": "",
|
// "USERPREFS_FIXED_GPS": "",
|
||||||
// "USERPREFS_FIXED_GPS_ALT": "0",
|
// "USERPREFS_FIXED_GPS_ALT": "0",
|
||||||
|
Loading…
Reference in New Issue
Block a user