mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 10:43:01 +08:00
textual
This commit is contained in:
parent
ef8cdc8bab
commit
6ad7f1ecf7
1 changed files with 14 additions and 1 deletions
|
@ -522,8 +522,17 @@ static int write_block(uint32_t address, uint8_t *data, uint32_t length) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
const char ice[] =
|
||||
"...................................................................\n @@@ @@@@@@@ @@@@@@@@ @@@@@@@@@@ @@@@@@ @@@ @@@\n"
|
||||
" @@! !@@ @@! @@! @@! @@! @@! @@@ @@!@!@@@\n !!@ !@! @!!!:! @!! !!@ @!@ @!@!@!@! @!@@!!@!\n"
|
||||
" !!: :!! !!: !!: !!: !!: !!! !!: !!!\n : :: :: : : :: ::: : : : : : :: : \n"
|
||||
" . .. .. . . .. ... . . . . . .. . \n"
|
||||
;
|
||||
|
||||
// Write a file's segments to Flash
|
||||
int flash_write(flash_file_t *ctx) {
|
||||
int len = 0;
|
||||
|
||||
PrintAndLogEx(SUCCESS, "Writing segments for file: %s", ctx->filename);
|
||||
for (int i = 0; i < ctx->num_segs; i++) {
|
||||
flash_seg_t *seg = &ctx->segments[i];
|
||||
|
@ -552,7 +561,11 @@ int flash_write(flash_file_t *ctx) {
|
|||
baddr += block_size;
|
||||
length -= block_size;
|
||||
block++;
|
||||
fprintf(stdout, ".");
|
||||
if ( len < strlen(ice) )
|
||||
fprintf(stdout, "%c", ice[len++]);
|
||||
else
|
||||
fprintf(stdout, ".");
|
||||
|
||||
fflush(stdout);
|
||||
}
|
||||
PrintAndLogEx(NORMAL, " " _GREEN_("OK"));
|
||||
|
|
Loading…
Reference in a new issue