ESPAltherma
ESPAltherma copied to clipboard
Switching to protocol s
Hello guys my in the log's i can read error Error 0x15 0xEA returned from HP. I changed the "Define Protocol to . and add the #include def/protocol_s.h
I cant compile the file i get this error:
In file included from include/def/PROTOCOL_S.h:1, from src\setup.h:91, from src\main.cpp:20: include/labeldef.h:6:7: error: redefinition of 'class LabelDef' 6 | class LabelDef | ^~~~~~~~ In file included from include/def/ALTHERMA(HPSU6_ULTRA).h:1, from src\setup.h:76, from src\main.cpp:20: include/labeldef.h:6:7: note: previous definition of 'class LabelDef' 6 | class LabelDef | ^~~~~~~~ In file included from src\setup.h:91, from src\main.cpp:20: include/def/PROTOCOL_S.h:4:10: error: redefinition of 'LabelDef labelDefs []' 4 | LabelDef labelDefs[] = { | ^~~~~~~~~ In file included from src\setup.h:76, from src\main.cpp:20: include/def/ALTHERMA(HPSU6_ULTRA).h:5:10: note: 'LabelDef labelDefs [35]' previously declared here 5 | LabelDef labelDefs[] = { | ^~~~~~~~~ In file included from src\main.cpp:22: include/converters.h: In member function 'void Converter::convert(LabelDef*, unsigned char*)': include/converters.h:228:35: warning: too many arguments for format [-Wformat-extra-args] 228 | sprintf(def->asString,"{0:X}{1:X}", num, num2); | ^~~~~~~~~~~~ *** [.pio\build\nodemcuv2\src\main.cpp.o] Error 1