make style

This commit is contained in:
Philippe Teuwen 2019-08-03 20:20:08 +02:00
parent e4972e8810
commit 517f0886ba
2 changed files with 13 additions and 14 deletions

View file

@ -407,8 +407,7 @@ static bool hitag2_password(uint8_t *rx, const size_t rxlen, uint8_t *tx, size_t
bAuthenticating = true; bAuthenticating = true;
memcpy(tx, password, 4); memcpy(tx, password, 4);
*txlen = 32; *txlen = 32;
} } else {
else {
// stage 2, got config byte+password TAG, discard as will read later // stage 2, got config byte+password TAG, discard as will read later
if (bAuthenticating) { if (bAuthenticating) {
bAuthenticating = false; bAuthenticating = false;

View file

@ -194,32 +194,32 @@ void printT55xxConfig(void) {
if (T55xx_Timing.m[i].write_gap != 0xFFFF) if (T55xx_Timing.m[i].write_gap != 0xFFFF)
sprintf(s + strlen(s), "%3d | ", T55xx_Timing.m[i].write_gap / 8); sprintf(s + strlen(s), "%3d | ", T55xx_Timing.m[i].write_gap / 8);
else else
PRN_NA; PRN_NA;
if (T55xx_Timing.m[i].write_0 != 0xFFFF) if (T55xx_Timing.m[i].write_0 != 0xFFFF)
sprintf(s + strlen(s), "%3d | ", T55xx_Timing.m[i].write_0 / 8); sprintf(s + strlen(s), "%3d | ", T55xx_Timing.m[i].write_0 / 8);
else else
PRN_NA; PRN_NA;
if (T55xx_Timing.m[i].write_1 != 0xFFFF) if (T55xx_Timing.m[i].write_1 != 0xFFFF)
sprintf(s + strlen(s), "%3d | ", T55xx_Timing.m[i].write_1 / 8); sprintf(s + strlen(s), "%3d | ", T55xx_Timing.m[i].write_1 / 8);
else else
PRN_NA; PRN_NA;
if (T55xx_Timing.m[i].read_gap != 0xFFFF) if (T55xx_Timing.m[i].read_gap != 0xFFFF)
sprintf(s + strlen(s), "%3d | ", T55xx_Timing.m[i].read_gap / 8); sprintf(s + strlen(s), "%3d | ", T55xx_Timing.m[i].read_gap / 8);
else else
PRN_NA; PRN_NA;
if (T55xx_Timing.m[i].write_2 != 0xFFFF && i == T55XX_DLMODE_1OF4 ) if (T55xx_Timing.m[i].write_2 != 0xFFFF && i == T55XX_DLMODE_1OF4)
sprintf(s + strlen(s), "%3d | ", T55xx_Timing.m[i].write_2 / 8); sprintf(s + strlen(s), "%3d | ", T55xx_Timing.m[i].write_2 / 8);
else else
PRN_NA PRN_NA
if (T55xx_Timing.m[i].write_3 != 0xFFFF && i == T55XX_DLMODE_1OF4) if (T55xx_Timing.m[i].write_3 != 0xFFFF && i == T55XX_DLMODE_1OF4)
sprintf(s + strlen(s), "%3d | ", T55xx_Timing.m[i].write_3 / 8); sprintf(s + strlen(s), "%3d | ", T55xx_Timing.m[i].write_3 / 8);
else else
PRN_NA; PRN_NA;
s[strlen(s)] = 0; s[strlen(s)] = 0;
DbpString(s); DbpString(s);