Skip to content

Commit e5eb779

Browse files
committed
Fix sensor-id for debug prints
1 parent 29cc42b commit e5eb779

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

libraries/MySensors/core/MyHwATMega328.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void hwDebugPrint(const char *fmt, ... ) {
187187
char fmtBuffer[300];
188188
#ifdef MY_GATEWAY_FEATURE
189189
// prepend debug message to be handled correctly by controller (C_INTERNAL, I_LOG_MESSAGE)
190-
snprintf_P(fmtBuffer, 299, PSTR("0;0;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
190+
snprintf_P(fmtBuffer, 299, PSTR("0;255;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
191191
Serial.print(fmtBuffer);
192192
#endif
193193
va_list args;

libraries/MySensors/core/MyHwESP8266.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void hwDebugPrint(const char *fmt, ... ) {
124124
char fmtBuffer[300];
125125
#ifdef MY_GATEWAY_FEATURE
126126
// prepend debug message to be handled correctly by controller (C_INTERNAL, I_LOG_MESSAGE)
127-
snprintf_P(fmtBuffer, 299, PSTR("0;0;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
127+
snprintf_P(fmtBuffer, 299, PSTR("0;255;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
128128
Serial.print(fmtBuffer);
129129
#endif
130130
va_list args;

libraries/MySensors/core/MyHwSAMD.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void hwDebugPrint(const char *fmt, ... ) {
140140
char fmtBuffer[300];
141141
#ifdef MY_GATEWAY_FEATURE
142142
// prepend debug message to be handled correctly by controller (C_INTERNAL, I_LOG_MESSAGE)
143-
snprintf(fmtBuffer, 299, PSTR("0;0;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
143+
snprintf(fmtBuffer, 299, PSTR("0;255;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
144144
SERIALDEVICE.print(fmtBuffer);
145145
#endif
146146
va_list args;

libraries/MySensors/core/MySigningAtsha204.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void DEBUG_SIGNING_PRINTBUF(const __FlashStringHelper* str, uint8_t* buf,
6262
static char printBuffer[300];
6363
#ifdef MY_GATEWAY_FEATURE
6464
// prepend debug message to be handled correctly by controller (C_INTERNAL, I_LOG_MESSAGE)
65-
snprintf_P(printBuffer, 299, PSTR("0;0;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
65+
snprintf_P(printBuffer, 299, PSTR("0;255;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
6666
SERIALDEVICE.print(printBuffer);
6767
#endif
6868
for (int i=0; i<sz; i++)

libraries/MySensors/core/MySigningAtsha204Soft.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static void DEBUG_SIGNING_PRINTBUF(const __FlashStringHelper* str, uint8_t* buf,
6565
static char printBuffer[300];
6666
#ifdef MY_GATEWAY_FEATURE
6767
// prepend debug message to be handled correctly by controller (C_INTERNAL, I_LOG_MESSAGE)
68-
snprintf_P(printBuffer, 299, PSTR("0;0;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
68+
snprintf_P(printBuffer, 299, PSTR("0;255;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
6969
SERIALDEVICE.print(printBuffer);
7070
#endif
7171
for (int i=0; i<sz; i++)

0 commit comments

Comments
 (0)