mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-01 11:25:44 +00:00
Renamed to is_always_powered for convention
This commit is contained in:
parent
d6c7ea921a
commit
2d939d26ee
@ -12,7 +12,7 @@
|
|||||||
static bool isPowered()
|
static bool isPowered()
|
||||||
{
|
{
|
||||||
// Completely circumvents the battery / power sensing logic and assumes constant power source
|
// Completely circumvents the battery / power sensing logic and assumes constant power source
|
||||||
if (radioConfig.preferences.always_powered) {
|
if (radioConfig.preferences.is_always_powered) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ typedef struct _RadioConfig_UserPreferences {
|
|||||||
uint32_t environmental_measurement_plugin_sensor_pin;
|
uint32_t environmental_measurement_plugin_sensor_pin;
|
||||||
bool store_forward_plugin_enabled;
|
bool store_forward_plugin_enabled;
|
||||||
uint32_t position_flags;
|
uint32_t position_flags;
|
||||||
bool always_powered;
|
bool is_always_powered;
|
||||||
} RadioConfig_UserPreferences;
|
} RadioConfig_UserPreferences;
|
||||||
|
|
||||||
typedef struct _RadioConfig {
|
typedef struct _RadioConfig {
|
||||||
@ -253,7 +253,7 @@ extern "C" {
|
|||||||
#define RadioConfig_UserPreferences_environmental_measurement_plugin_sensor_pin_tag 147
|
#define RadioConfig_UserPreferences_environmental_measurement_plugin_sensor_pin_tag 147
|
||||||
#define RadioConfig_UserPreferences_store_forward_plugin_enabled_tag 148
|
#define RadioConfig_UserPreferences_store_forward_plugin_enabled_tag 148
|
||||||
#define RadioConfig_UserPreferences_position_flags_tag 150
|
#define RadioConfig_UserPreferences_position_flags_tag 150
|
||||||
#define RadioConfig_UserPreferences_always_powered_tag 151
|
#define RadioConfig_UserPreferences_is_always_powered_tag 151
|
||||||
#define RadioConfig_preferences_tag 1
|
#define RadioConfig_preferences_tag 1
|
||||||
|
|
||||||
/* Struct field encoding specification for nanopb */
|
/* Struct field encoding specification for nanopb */
|
||||||
@ -322,7 +322,7 @@ X(a, STATIC, SINGULAR, UENUM, environmental_measurement_plugin_sensor_type,
|
|||||||
X(a, STATIC, SINGULAR, UINT32, environmental_measurement_plugin_sensor_pin, 147) \
|
X(a, STATIC, SINGULAR, UINT32, environmental_measurement_plugin_sensor_pin, 147) \
|
||||||
X(a, STATIC, SINGULAR, BOOL, store_forward_plugin_enabled, 148) \
|
X(a, STATIC, SINGULAR, BOOL, store_forward_plugin_enabled, 148) \
|
||||||
X(a, STATIC, SINGULAR, UINT32, position_flags, 150) \
|
X(a, STATIC, SINGULAR, UINT32, position_flags, 150) \
|
||||||
X(a, STATIC, SINGULAR, BOOL, always_powered, 151)
|
X(a, STATIC, SINGULAR, BOOL, is_always_powered, 151)
|
||||||
#define RadioConfig_UserPreferences_CALLBACK NULL
|
#define RadioConfig_UserPreferences_CALLBACK NULL
|
||||||
#define RadioConfig_UserPreferences_DEFAULT NULL
|
#define RadioConfig_UserPreferences_DEFAULT NULL
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user