code sanitization (decentralized several vars, 2)

This commit is contained in:
cyberman54 committed 2021-03-31 21:43:51 +02:00
1 parent e439d932b9
commit 9335161676
18 files changed
+42 -23

No files matched your search

+2
View File
@@ -17,6 +17,8 @@ static const char TAG[] = __FILE__;
Preferences nvram;
configData_t cfg; // struct holds current device configuration
static const uint8_t cfgMagicBytes[] = {0x21, 0x76, 0x87, 0x32, 0xf4};
static const size_t cfgLen = sizeof(cfg), cfgLen2 = sizeof(cfgMagicBytes);
static uint8_t buffer[cfgLen + cfgLen2];
-2
View File
@@ -89,8 +89,6 @@ triggers pps 1 sec impulse
// local Tag for logging
static const char TAG[] = __FILE__;
configData_t cfg; // struct holds current device configuration
uint8_t batt_level = 0; // display value
char clientId[20] = {0}; // unique ClientID
void setup() {
+2
View File
@@ -5,6 +5,8 @@
// Local logging tag
static const char TAG[] = __FILE__;
uint8_t batt_level = 0; // display value
#ifdef BAT_MEASURE_ADC
esp_adc_cal_characteristics_t *adc_characs =
(esp_adc_cal_characteristics_t *)calloc(