mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-22 10:20:55 +00:00
dont use non-std strncasecmp
This commit is contained in:
parent
fb7122f07d
commit
075095554a
@ -148,11 +148,12 @@ bool tud_usbtmc_msg_data_cb(void *data, size_t len, bool transfer_complete)
|
|||||||
queryState = transfer_complete;
|
queryState = transfer_complete;
|
||||||
idnQuery = 0;
|
idnQuery = 0;
|
||||||
|
|
||||||
if(transfer_complete && (len >=4) && !strncasecmp("*idn?",data,4))
|
if ( transfer_complete && (len >= 4) && (!strncmp("*idn?", data, 4) || !strncmp("*IDN?", data, 4)) )
|
||||||
{
|
{
|
||||||
idnQuery = 1;
|
idnQuery = 1;
|
||||||
}
|
}
|
||||||
if(transfer_complete && !strncasecmp("delay ",data,5))
|
|
||||||
|
if ( transfer_complete && (!strncmp("delay ", data, 5) || !strncmp("DELAY ", data, 5)) )
|
||||||
{
|
{
|
||||||
queryState = 0;
|
queryState = 0;
|
||||||
int d = atoi((char*)data + 5);
|
int d = atoi((char*)data + 5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user