Skip to content

Commit 58b424b

Browse files
author
Patrick Bechon
committed
Remove compilation warning from an example
1 parent ffeb43f commit 58b424b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/KerbalSimpitHelloWorld/KerbalSimpitHelloWorld.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void messageHandler(byte messageType, byte msg[], byte msgSize) {
6969
// The message payload will be either "low" or "high".
7070
// We use the strcmp function to check what the string payload
7171
// is, and set the LED status accordingly.
72-
if (strcmp(msg, "low")) {
72+
if (strcmp((char*) msg, "low")) {
7373
digitalWrite(LED_BUILTIN, LOW);
7474
} else {
7575
digitalWrite(LED_BUILTIN, HIGH);

0 commit comments

Comments
 (0)