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:
iceman1001 2016-03-06 10:35:25 +01:00
commit 38e4191705
4 changed files with 57 additions and 36 deletions

View file

@ -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;