mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-04-30 05:35:50 +00:00
Allow up to 8 cycles to charge capacitor
This commit is contained in:
@@ -30,6 +30,7 @@ ADC_MODE(ADC_VCC);
|
|||||||
#include "ZmartChargeCloudConnector.h"
|
#include "ZmartChargeCloudConnector.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define MAX_BOOT_CYCLES 8
|
||||||
#define WDT_TIMEOUT 120
|
#define WDT_TIMEOUT 120
|
||||||
#if defined(SLOW_PROC_TRIGGER_MS)
|
#if defined(SLOW_PROC_TRIGGER_MS)
|
||||||
#warning "Using predefined slow process trigger"
|
#warning "Using predefined slow process trigger"
|
||||||
@@ -191,8 +192,6 @@ CloudConnector *cloud = NULL;
|
|||||||
ZmartChargeCloudConnector *zcloud = NULL;
|
ZmartChargeCloudConnector *zcloud = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_BOOT_CYCLES 6
|
|
||||||
|
|
||||||
#if defined(ESP32)
|
#if defined(ESP32)
|
||||||
__NOINIT_ATTR EnergyAccountingRealtimeData rtd;
|
__NOINIT_ATTR EnergyAccountingRealtimeData rtd;
|
||||||
RTC_DATA_ATTR uint8_t bootcount = 0;
|
RTC_DATA_ATTR uint8_t bootcount = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user