From c1a54f3af0e68caea8dcc6921daa194128134cb0 Mon Sep 17 00:00:00 2001 From: jupfi Date: Mon, 21 Feb 2022 11:50:30 +0100 Subject: [PATCH] Small adjustments. --- src/ATM.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ATM.ino b/src/ATM.ino index 9f46756..7c1b889 100644 --- a/src/ATM.ino +++ b/src/ATM.ino @@ -169,7 +169,7 @@ void loop() changeFrequencyRange(HOME_RANGE); Serial.println("Resonance frequency after homing:"); - uint32_t resonance_frequency = findCurrentResonanceFrequency(START_FREQUENCY, STOP_FREQUENCY, FREQUENCY_STEP); + uint32_t resonance_frequency = findCurrentResonanceFrequency(START_FREQUENCY, STOP_FREQUENCY, FREQUENCY_STEP / 2); Serial.println(resonance_frequency); // frequency sweep call @@ -178,7 +178,7 @@ void loop() else if (command == 'f') { Serial.println("Frequency sweep..."); - uint32_t resonance_frequency = findCurrentResonanceFrequency(START_FREQUENCY, STOP_FREQUENCY, FREQUENCY_STEP); + uint32_t resonance_frequency = findCurrentResonanceFrequency(START_FREQUENCY, STOP_FREQUENCY, FREQUENCY_STEP / 2); Serial.println("Resonance is at:"); Serial.println(resonance_frequency);