CHG; a fix for "HF TUNE", I always were annoyed with the hf tune where it printed one value per row endlessly. So this fixes that, it uses "\r" to print on the same row. Works on MINGW/WINDOWS. Havn'nt tested it on Linux yet. But it looks good now.
This commit is contained in:
@@ -185,7 +185,15 @@ void UsbCommandReceived(UsbCommand *UC)
|
||||
memset(s, 0x00, sizeof(s));
|
||||
size_t len = MIN(UC->arg[0],USB_CMD_DATA_SIZE);
|
||||
memcpy(s, UC->d.asBytes, len);
|
||||
PrintAndLog("#db# %s", s);
|
||||
|
||||
// test
|
||||
if ( UC->arg[1] == CMD_MEASURE_ANTENNA_TUNING_HF) {
|
||||
printf("\r#db# %s", s);
|
||||
fflush(stdout);
|
||||
}
|
||||
else
|
||||
PrintAndLog("#db# %s", s);
|
||||
|
||||
return;
|
||||
} break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user