Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore committed Jul 9, 2024
1 parent 00d6b63 commit 78f26c7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions BSB_LAN/BSB_LAN.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4066,11 +4066,7 @@ void queryVirtualPrognr(float line, int table_line) {
case BSP_INTERNAL + 5: val = TWW_count; break;
case BSP_INTERNAL + 6: val = 0; break;
}
#if !defined(ESP32)
sprintf_P(decodedTelegram.value, "%ld", val);
#else
sprintf_P(decodedTelegram.value, "%d", val);
#endif
return;
}
case 2: {
Expand Down
2 changes: 1 addition & 1 deletion BSB_LAN/include/print2webclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int printToWebClient(const char *format) {
return len;
}

#define printlnToWebClient(format) (printToWebClient(format) + writelnToWebClient())
#define printlnToWebClient(format) (printToWebClient(format), writelnToWebClient())

int printFmtToWebClient(const char *format, ...) {
va_list args;
Expand Down
4 changes: 0 additions & 4 deletions BSB_LAN/include/print_telegram.h
Original file line number Diff line number Diff line change
Expand Up @@ -1165,11 +1165,7 @@ void printTelegram(byte* msg, float query_line) {
for (int x=0; x<len; x++) {
val = val + ((uint32_t)msg[bus->getPl_start()+idx+x] << (8*(len-1-x)));
}
#if !defined(ESP32)
sprintf(decodedTelegram.value,"%lu",val);
#else
sprintf(decodedTelegram.value,"%u",val);
#endif
printToDebug(decodedTelegram.value);
} else {
decodedTelegram.error = 259;
Expand Down

0 comments on commit 78f26c7

Please sign in to comment.