From 93fe8c2818d021b3e54f0cd09d2fdcf45c448373 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sat, 10 Dec 2022 19:58:34 +0100 Subject: [PATCH] Minor adjustment. --- usermods/powerap/powerap.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usermods/powerap/powerap.h b/usermods/powerap/powerap.h index 339af7d6..af2dc74c 100644 --- a/usermods/powerap/powerap.h +++ b/usermods/powerap/powerap.h @@ -13,7 +13,6 @@ class PowerAPUsermod : public Usermod { File fl = WLED_FS.open(fname,"r+"); if (!fl) DEBUG_PRINTLN(F("--- File read failed ---")); char data = fl.read(); - DEBUG_PRINT(F("--- Read ")); DEBUG_PRINT(data); DEBUG_PRINT('('); DEBUG_PRINT((int)data); DEBUG_PRINTLN(F(") ---")); if (data == '0') { DEBUG_PRINTLN(F("--- 2nd boot ---")); fl.seek(0); @@ -27,7 +26,7 @@ class PowerAPUsermod : public Usermod { } else { DEBUG_PRINTLN(F("--- 1st boot ---")); File fl = WLED_FS.open(fname,"w"); - fl.write((uint8_t*)"0 ", 2); + fl.write((uint8_t*)"0 ", 2); // write('0'); does not work somehow fl.close(); } }