Disable left over RTC_STRUCT_DEBUG flag

This commit is contained in:
TD-er
2021-05-12 17:44:51 +02:00
parent e3ea3020d8
commit 8950fef76f
3 changed files with 4 additions and 1 deletions
@@ -135,7 +135,9 @@ bool RTC_cache_handler_struct::write(uint8_t *data, unsigned int size) {
bool RTC_cache_handler_struct::flush() {
if (prepareFileForWrite()) {
if (RTC_cache.writePos > 0) {
#ifdef RTC_STRUCT_DEBUG
size_t filesize = fw.size();
#endif
int bytesWriten = fw.write(&RTC_cache_data[0], RTC_cache.writePos);
delay(0);
@@ -23,7 +23,7 @@
#define CACHE_STORAGE_BEHIND_SPIFFS 3
#define RTC_STRUCT_DEBUG
//#define RTC_STRUCT_DEBUG
/********************************************************************************************\
RTC located cache
+1
View File
@@ -5,6 +5,7 @@
#include "../DataStructs/RTCCacheStruct.h"
#include "../DataStructs/RTC_cache_handler_struct.h"
#include "../DataStructs/TimingStats.h"
#include "../ESPEasyCore/ESPEasy_Log.h"
#include "../Globals/Plugins.h"
#include "../Globals/RuntimeData.h"
#include "../Helpers/CRC_functions.h"