Skip to content

Commit 17f8fdb

Browse files
Fixed? Codacy complaining about C-style pointer casting
1 parent bf0f78d commit 17f8fdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ static void webSocketEvent(WStype_t type, uint8_t *payload, size_t length)
227227
lastWebsocketEventMS = millis();
228228
break;
229229
case WStype_TEXT:
230-
processPayload((char *)payload);
230+
processPayload(reinterpret_cast<char *>(payload));
231231
lastWebsocketEventMS = millis();
232232
break;
233233
case WStype_BIN:

0 commit comments

Comments
 (0)