jtag: added debugging pp symbol to ignore failed matches

This can help printing data register when a mismatch
occurs.
This commit is contained in:
ole00 2024-04-24 23:12:20 +01:00
parent 7c0a32cba3
commit a3e6f11b0f

View File

@ -45,6 +45,7 @@ Arduino usage:
#define XSVF_DEBUG 0
#define XSVF_CALC_CSUM 1
#define XSVF_IGNORE_NOMATCH 0
#define XCOMPLETE 0
#define XTDOMASK 1
@ -583,12 +584,14 @@ static uint8_t xsvf_jtag_is_tdo_as_expected(uint8_t use_mask)
expected &= mask;
actual &= mask;
}
#if XSVF_IGNORE_NOMATCH != 1
if (expected != actual) {
#if XSVF_DEBUG
Serial.println(F("D...NO MATCH!"));
#endif
return 0;
}
#endif
}
#if XSVF_DEBUG