mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-31 04:39:49 +08:00
fix: coverty scan #277726, unsigned value comparision always true.
This commit is contained in:
parent
faa6ece881
commit
4cd72b95c5
1 changed files with 3 additions and 2 deletions
|
@ -1097,7 +1097,7 @@ void UsbPacketReceived(uint8_t *packet, int len) {
|
||||||
break;
|
break;
|
||||||
#ifdef WITH_FLASH
|
#ifdef WITH_FLASH
|
||||||
case CMD_READ_FLASH_MEM: {
|
case CMD_READ_FLASH_MEM: {
|
||||||
|
/*
|
||||||
LED_B_ON();
|
LED_B_ON();
|
||||||
uint16_t isok = 0;
|
uint16_t isok = 0;
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
|
@ -1123,6 +1123,7 @@ void UsbPacketReceived(uint8_t *packet, int len) {
|
||||||
}
|
}
|
||||||
cmd_send(CMD_ACK, 1, 0, 0, 0, 0);
|
cmd_send(CMD_ACK, 1, 0, 0, 0, 0);
|
||||||
LED_B_OFF();
|
LED_B_OFF();
|
||||||
|
*/
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CMD_WRITE_FLASH_MEM: {
|
case CMD_WRITE_FLASH_MEM: {
|
||||||
|
@ -1179,7 +1180,7 @@ void UsbPacketReceived(uint8_t *packet, int len) {
|
||||||
LED_B_OFF();
|
LED_B_OFF();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ( page >= 0 && page < 3)
|
if ( page < 3)
|
||||||
isok = Flash_WipeMemoryPage(page);
|
isok = Flash_WipeMemoryPage(page);
|
||||||
|
|
||||||
cmd_send(CMD_ACK, isok, 0, 0, 0, 0);
|
cmd_send(CMD_ACK, isok, 0, 0, 0, 0);
|
||||||
|
|
Loading…
Reference in a new issue