From 891a07998977aac2e5b22de424690a74b5eccf16 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 24 Sep 2019 14:59:05 +0200 Subject: [PATCH] textual --- armsrc/appmain.c | 6 +++--- client/cmdhf.c | 5 +++-- client/cmdlf.c | 12 +++++------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index bbc4eecf9..7c483f2e1 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -206,7 +206,7 @@ void MeasureAntennaTuning(void) { LEDsoff(); } -// Measure HF in miliVolt +// Measure HF in milliVolt uint16_t MeasureAntennaTuningHfData(void) { uint16_t volt = 0; uint16_t avg = AvgAdc(ADC_CHAN_HF); @@ -220,7 +220,7 @@ uint16_t MeasureAntennaTuningHfData(void) { return volt; } -// Measure LF in miliVolt +// Measure LF in milliVolt uint32_t MeasureAntennaTuningLfData(void) { return (MAX_ADC_LF_VOLTAGE * AvgAdc(ADC_CHAN_LF)) >> 10; } @@ -1451,7 +1451,7 @@ static void PacketReceived(PacketCommandNG *packet) { switch (packet->data.asBytes[0]) { case 1: // MEASURE_ANTENNA_TUNING_LF_START - // Let the FPGA drive the low-frequency antenna around 125Khz + // Let the FPGA drive the low-frequency antenna around 125kHz FpgaDownloadAndGo(FPGA_BITSTREAM_LF); FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_ADC | FPGA_LF_ADC_READER_FIELD); FpgaSendCommand(FPGA_CMD_SET_DIVISOR, 95); diff --git a/client/cmdhf.c b/client/cmdhf.c index 8326d988f..c76f62d81 100644 --- a/client/cmdhf.c +++ b/client/cmdhf.c @@ -60,11 +60,12 @@ static int usage_hf_sniff() { } static int usage_hf_tune() { - PrintAndLogEx(NORMAL, "Usage: hf tune []"); PrintAndLogEx(NORMAL, "Continuously measure HF antenna tuning."); PrintAndLogEx(NORMAL, "Press button or Enter to interrupt."); + PrintAndLogEx(NORMAL, "Usage: hf tune [h] []"); PrintAndLogEx(NORMAL, "Options:"); - PrintAndLogEx(NORMAL, " - number of iterations (default: infinite)"); + PrintAndLogEx(NORMAL, " h - This help"); + PrintAndLogEx(NORMAL, " - number of iterations (default: 0=infinite)"); PrintAndLogEx(NORMAL, ""); return PM3_SUCCESS; } diff --git a/client/cmdlf.c b/client/cmdlf.c index 002a596fe..c39bcd30d 100644 --- a/client/cmdlf.c +++ b/client/cmdlf.c @@ -191,15 +191,13 @@ static int usage_lf_find(void) { return PM3_SUCCESS; } static int usage_lf_tune(void) { - PrintAndLogEx(NORMAL, "Continuously measure LF antenna tuning."); + PrintAndLogEx(NORMAL, "Continuously measure LF antenna tuning at 125 kHz."); PrintAndLogEx(NORMAL, "Press button or Enter to interrupt."); - PrintAndLogEx(NORMAL, "Usage: lf tune [h] <0|1>"); + PrintAndLogEx(NORMAL, "Usage: lf tune [h] []"); PrintAndLogEx(NORMAL, ""); PrintAndLogEx(NORMAL, "Options:"); - PrintAndLogEx(NORMAL, " h This help"); - PrintAndLogEx(NORMAL, " <> "); - PrintAndLogEx(NORMAL, "Examples:"); - PrintAndLogEx(NORMAL, " lf tune = "); + PrintAndLogEx(NORMAL, " h - This help"); + PrintAndLogEx(NORMAL, " - number of iterations (default: 0=infinite)"); return PM3_SUCCESS; } @@ -208,7 +206,7 @@ int CmdLFTune(const char *Cmd) { if (cmdp == 'h') return usage_lf_tune(); int iter = param_get32ex(Cmd, 0, 0, 10); - PrintAndLogEx(SUCCESS, "Measuring LF antenna, click button or press Enter to exit"); + PrintAndLogEx(SUCCESS, "Measuring LF antenna at 125kHz, click button or press Enter to exit"); uint8_t mode[] = {1}; PacketResponseNG resp;