mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-19 11:33:51 +08:00
chG: adjust some "." progress dots, that shouldn't use NORMAL..
This commit is contained in:
parent
5de4d9d3a6
commit
40cc0a402b
6 changed files with 12 additions and 9 deletions
|
@ -1484,7 +1484,7 @@ int CmdTuneSamples(const char *Cmd) {
|
|||
UsbCommand resp;
|
||||
while (!WaitForResponseTimeout(CMD_MEASURED_ANTENNA_TUNING, &resp, 2000)) {
|
||||
timeout++;
|
||||
PrintAndLogEx(NORMAL, "."); fflush(stdout);
|
||||
printf("."); fflush(stdout);
|
||||
if (timeout > 7) {
|
||||
PrintAndLogEx(NORMAL, "\n"); PrintAndLogEx(WARNING, "no response from Proxmark. Aborting...");
|
||||
return 1;
|
||||
|
@ -1533,6 +1533,7 @@ int CmdTuneSamples(const char *Cmd) {
|
|||
sprintf(judgement, "MARGINAL");
|
||||
else
|
||||
sprintf(judgement, "OK");
|
||||
|
||||
PrintAndLogEx(NORMAL, "[%c] HF antenna is %s"
|
||||
, (v_hf < HF_UNUSABLE_V) ? '!' : '+'
|
||||
, judgement
|
||||
|
@ -1546,12 +1547,14 @@ int CmdTuneSamples(const char *Cmd) {
|
|||
test += resp.d.asBytes[i];
|
||||
}
|
||||
if ( test > 0 ) {
|
||||
PrintAndLogEx(NORMAL, "\n"); PrintAndLogEx(SUCCESS, "Displaying LF tuning graph. Divisor 89 is 134khz, 95 is 125khz.\n\n");
|
||||
PrintAndLogEx(NORMAL, "\n");
|
||||
PrintAndLogEx(SUCCESS, " Displaying LF tuning graph. Divisor 89 is 134khz, 95 is 125khz.\n\n");
|
||||
GraphTraceLen = 256;
|
||||
ShowGraphWindow();
|
||||
RepaintGraphWindow();
|
||||
} else {
|
||||
PrintAndLogEx(NORMAL, "\n[-] Not showing LF tuning graph since all values is zero.\n\n");
|
||||
PrintAndLogEx(NORMAL, "\n");
|
||||
PrintAndLogEx(FAILED, "Not showing LF tuning graph since all values is zero.\n\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -363,7 +363,7 @@ int CmdHFFelicaDumpLite(const char *Cmd) {
|
|||
uint8_t timeout = 0;
|
||||
while ( !WaitForResponseTimeout(CMD_ACK, &resp, 2000) ) {
|
||||
timeout++;
|
||||
PrintAndLogEx(NORMAL, "."); fflush(stdout);
|
||||
printf("."); fflush(stdout);
|
||||
if (ukbhit()) {
|
||||
int gc = getchar(); (void)gc;
|
||||
PrintAndLogEx(NORMAL, "\n[!] aborted via keyboard!\n");
|
||||
|
|
|
@ -1039,7 +1039,7 @@ int CmdHFiClassReader_Dump(const char *Cmd) {
|
|||
clearCommandBuffer();
|
||||
SendCommand(&w);
|
||||
while (true) {
|
||||
PrintAndLogEx(NORMAL, "."); fflush(stdout);
|
||||
printf("."); fflush(stdout);
|
||||
if (ukbhit()) {
|
||||
int gc = getchar(); (void)gc;
|
||||
PrintAndLogEx(NORMAL, "\n[!] aborted via keyboard!\n");
|
||||
|
|
|
@ -1227,7 +1227,7 @@ int CmdLegicWipe(const char *Cmd){
|
|||
UsbCommand resp;
|
||||
for(size_t i = 7; i < card.cardsize; i += USB_CMD_DATA_SIZE) {
|
||||
|
||||
PrintAndLogEx(NORMAL, "."); fflush(stdout);
|
||||
printf("."); fflush(stdout);
|
||||
len = MIN((card.cardsize - i), USB_CMD_DATA_SIZE);
|
||||
c.arg[0] = i; // offset
|
||||
c.arg[1] = len; // number of bytes
|
||||
|
|
|
@ -37,7 +37,7 @@ int mfDarkside(uint8_t blockno, uint8_t key_type, uint64_t *key) {
|
|||
|
||||
// wait cycle
|
||||
while (true) {
|
||||
PrintAndLogEx(NORMAL, "."); fflush(stdout);
|
||||
printf("."); fflush(stdout);
|
||||
if (ukbhit()) {
|
||||
int gc = getchar(); (void)gc;
|
||||
return -5;
|
||||
|
|
Loading…
Add table
Reference in a new issue