mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 14:12:05 +00:00
Fix warning
This commit is contained in:
parent
86217111b2
commit
6f256c06f6
@ -513,7 +513,7 @@ void SerialModule::processWXSerial()
|
|||||||
// Extract the current line
|
// Extract the current line
|
||||||
char line[meshtastic_Constants_DATA_PAYLOAD_LEN];
|
char line[meshtastic_Constants_DATA_PAYLOAD_LEN];
|
||||||
memset(line, '\0', sizeof(line));
|
memset(line, '\0', sizeof(line));
|
||||||
if (lineEnd - lineStart < sizeof(line) - 1) {
|
if ((size_t)(lineEnd - lineStart) < sizeof(line) - 1) {
|
||||||
memcpy(line, &serialBytes[lineStart], lineEnd - lineStart);
|
memcpy(line, &serialBytes[lineStart], lineEnd - lineStart);
|
||||||
|
|
||||||
ParsedLine parsed = parseLine(line);
|
ParsedLine parsed = parseLine(line);
|
||||||
|
Loading…
Reference in New Issue
Block a user