Skip to content

Commit a6b533d

Browse files
author
ScrapComputing
committed
Rev 0.6: Firmware fix: one-button mode initial frequency glitch due to potentiometer capacitor
1 parent c1e99c3 commit a6b533d

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ So I don't think there is a way to get the Throttle Blaster to work universally
239239

240240

241241
# Change Log
242-
- Rev 0.6: Firmware bug fixes: not saving MHz/Period adjustments to flash.
242+
- Rev 0.6: Firmware bug fixes: (i) fix saving MHz/Period adjustments to flash and (ii) one-button mode frequency glitch.
243243
- Rev 0.5: Replaces potentiometer capacitor with SMD and several firmware fixes.
244244
- Rev 0.4: Reverses knob direction and adds jumper JP3 for selecting direction.
245245
- Rev 0.3: Adds UART support in both firmware and PCB.

firmware/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cmake_minimum_required(VERSION 3.13)
1919
# For example: minicom -b 115200 -D /dev/ttyACM0. Serial connection: 115200 8N1
2020

2121
set(REVISION_MAJOR 0)
22-
set(REVISION_MINOR 4)
22+
set(REVISION_MINOR 6)
2323

2424
message("PICO_SDK_PATH = ${PICO_SDK_PATH}")
2525

firmware/src/PotentiometerLogic.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ void PotentiometerLogic::manual(int PotVal, ButtonState BtnState) {
3232
Disp.setFlash(true);
3333
return;
3434
}
35-
int MaxKHz = Presets.getMaxKHz();
36-
DC.setKHz(PotVal * MaxKHz / PotMaxVal);
35+
if (EnablePot) {
36+
int MaxKHz = Presets.getMaxKHz();
37+
DC.setKHz(PotVal * MaxKHz / PotMaxVal);
38+
}
3739
}
3840

3941
void PotentiometerLogic::cyclePresets(int PotVal, ButtonState BtnState) {

firmware/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const char *getUIModeStr(UIMode Mode) {
5151
case UIMode::TwoButton:
5252
return "TwoButton";
5353
case UIMode::Button:
54-
return "Button";
54+
return "OneButton";
5555
case UIMode::ButtonWithPot:
5656
return "ButtonWithPot";
5757
}

0 commit comments

Comments
 (0)