From 2f60dfa276812d1469576ecc65c66bb99e39fa19 Mon Sep 17 00:00:00 2001 From: Richard Li Date: Thu, 23 Jan 2025 15:56:58 +0800 Subject: [PATCH] Fixed switch driver --- radio/src/targets/pl18/nb4p_switch_driver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/targets/pl18/nb4p_switch_driver.cpp b/radio/src/targets/pl18/nb4p_switch_driver.cpp index 614694b7e..8b3335604 100644 --- a/radio/src/targets/pl18/nb4p_switch_driver.cpp +++ b/radio/src/targets/pl18/nb4p_switch_driver.cpp @@ -32,7 +32,7 @@ static const char _switch_names[][4] = {"SW2", "SW3"}; -SwitchHwPos boardSwitchGetPosition(uint8_t cat, uint8_t idx) +SwitchHwPos boardSwitchGetPosition(SwitchCategory cat, uint8_t idx) { if (idx <= 1) { // uint16_t swVal = getAnalogValue(4); @@ -55,7 +55,7 @@ SwitchHwPos boardSwitchGetPosition(uint8_t cat, uint8_t idx) return SWITCH_HW_UP; } -const char* boardSwitchGetName(uint8_t cat, uint8_t idx) +const char* boardSwitchGetName(SwitchCategory cat, uint8_t idx) { return _switch_names[idx]; }