Fixed linting with trunk

This commit is contained in:
Raul Perdomo 2025-03-20 00:26:58 -04:00 committed by Thomas Göttgens
parent cbbe078f08
commit 24692177fa

View File

@ -468,8 +468,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 (lineEnd - lineStart < sizeof(line) - 1) {
{
memcpy(line, &serialBytes[lineStart], lineEnd - lineStart); memcpy(line, &serialBytes[lineStart], lineEnd - lineStart);
if (strstr(line, "Wind") != NULL) // we have a wind line if (strstr(line, "Wind") != NULL) // we have a wind line
{ {