Skip to content

Commit e8d02fd

Browse files
committed
Remove case requirement on VERSION
strcasestr() not supported on all compilers. Assume UM980 will follow its docs and always use uppercase response.
1 parent 663c81d commit e8d02fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parse_Unicore_Hash.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ bool sempUnicoreHashFindFirstComma(SEMP_PARSE_STATE *parse, uint8_t data)
320320

321321
// Determine the number of checksum bytes
322322
scratchPad->unicoreHash.checksumBytes = 2;
323-
if (strcasestr("VERSION", (const char *)scratchPad->unicoreHash.sentenceName))
323+
if (strstr("VERSION", (const char *)scratchPad->unicoreHash.sentenceName))
324324
scratchPad->unicoreHash.checksumBytes = 8;
325325
parse->state = sempUnicoreHashFindAsterisk;
326326
}

0 commit comments

Comments
 (0)