ftdiJtagMPSSE: restructure SIPEED firmware test to uses strncomp only once with SIPEED keyword
This commit is contained in:
parent
a300f9d36a
commit
cba4ae5895
|
|
@ -74,15 +74,13 @@ void FtdiJtagMPSSE::init_internal(const mpsse_bit_config &cable)
|
||||||
_ch552WA = true;
|
_ch552WA = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sipeed cable Work around
|
||||||
|
if (!strncmp((const char *)_imanufacturer, "SIPEED", 6)) {
|
||||||
// This Sipeed firmware does not support MPSEE 0x8E, 0x8F commands properly
|
// This Sipeed firmware does not support MPSEE 0x8E, 0x8F commands properly
|
||||||
if ( (!strncmp((const char *)_imanufacturer, "SIPEED", 6))
|
if (!strncmp((const char *)_iserialnumber, "2023112818", 10))
|
||||||
&& (!strncmp((const char *)_iserialnumber, "2023112818", 10)) ) {
|
_cmd8EWA true;
|
||||||
_cmd8EWA = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// This Sipeed firmware is incredibly slow in LSB first mode
|
// This Sipeed firmware is incredibly slow in LSB first mode
|
||||||
if ( (!strncmp((const char *)_imanufacturer, "SIPEED", 6))
|
if (!strncmp((const char *)_iserialnumber, "2025041420", 10))
|
||||||
&& (!strncmp((const char *)_iserialnumber, "2025041420", 10)) ) {
|
|
||||||
_msb_first = true;
|
_msb_first = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue