mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
make style
This commit is contained in:
parent
33f2cb0981
commit
8e6258936c
5 changed files with 13 additions and 14 deletions
|
@ -164,7 +164,7 @@ void UsbPacketReceived(uint8_t *packet, int len) {
|
|||
offset = (AT91C_IFLASH_NB_OF_PAGES / 2) * AT91C_IFLASH_PAGE_SIZE / sizeof(uint32_t);
|
||||
}
|
||||
for (i = 0 + (64 * j); i < 64 + (64 * j); i++) {
|
||||
flash_mem[offset+i] = c->d.asDwords[i];
|
||||
flash_mem[offset + i] = c->d.asDwords[i];
|
||||
}
|
||||
|
||||
/* Check that the address that we are supposed to write to is within our allowed region */
|
||||
|
|
|
@ -539,7 +539,7 @@ int EMVSearch(EMVCommandChannel channel, bool ActivateField, bool LeaveFieldON,
|
|||
i--;
|
||||
} else {
|
||||
// (1) - card select error, (4) reply timeout, (200) - result length = 0
|
||||
if (res == 1 || res == 4 ||res == 200) {
|
||||
if (res == 1 || res == 4 || res == 200) {
|
||||
if (!LeaveFieldON)
|
||||
DropFieldEx(channel);
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ int main(int argc, char **argv) {
|
|||
int res;
|
||||
int ret = 0;
|
||||
flash_file_t files[MAX_FILES];
|
||||
char * filenames[MAX_FILES];
|
||||
char *filenames[MAX_FILES];
|
||||
bool info = false;
|
||||
memset(files, 0, sizeof(files));
|
||||
|
||||
|
@ -146,8 +146,8 @@ int main(int argc, char **argv) {
|
|||
if (info)
|
||||
goto finish;
|
||||
|
||||
for (int i = 0 ; i < num_files; ++i){
|
||||
res = flash_load(&files[i], filenames[i], can_write_bl, mem_avail*ONE_KB);
|
||||
for (int i = 0 ; i < num_files; ++i) {
|
||||
res = flash_load(&files[i], filenames[i], can_write_bl, mem_avail * ONE_KB);
|
||||
if (res < 0) {
|
||||
ret = -1;
|
||||
goto finish;
|
||||
|
@ -174,7 +174,7 @@ finish:
|
|||
|
||||
CloseProxmark();
|
||||
|
||||
if (ret==0)
|
||||
if (ret == 0)
|
||||
PrintAndLogEx(SUCCESS, _BLUE_("All done."));
|
||||
else
|
||||
PrintAndLogEx(ERR, "Aborted on error.");
|
||||
|
|
|
@ -31,4 +31,3 @@ elif action.lower() == "diff":
|
|||
flash = text+data
|
||||
print_increase(flash, flash_ref, "Flash")
|
||||
print_increase(bss, bss_ref, "RAM")
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue