Skip to content

Commit a44663f

Browse files
author
Stefan Hirschenberger
committed
fix: redefine status-enums and remove dead code
1 parent 0520f4c commit a44663f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/BlinkMarinePkpCanOpen.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ uint8_t Pkp::getKeyState(uint8_t keyIndex) {
110110
* @param inputIndex The index of the wired input (0 to PKP_MAX_WIRED_IN_AMOUNT - 1).
111111
* @return The state of the specified wired input, or 0 if the index is out of range.
112112
*/
113-
uint8_t Pkp::getWiredInput(uint8_t inputIndex, bool analog) {
113+
uint8_t Pkp::getWiredInput(uint8_t inputIndex) {
114114
if (inputIndex > PKP_MAX_WIRED_IN_AMOUNT - 1) {
115115
return 0;
116116
}

src/BlinkMarinePkpCanOpen.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ typedef uint8_t (*CanMsgTxCallback)(const struct can_frame& txMsg);
3636
class Pkp {
3737
public:
3838
// ------ Public Type Definitions ------
39-
enum keypadCanStatus_e : uint8_t {
40-
KPS_FRESH = 0,
41-
KPS_RX_WITHIN_LAST_SECOND = 1,
42-
KPS_NO_RX_WITHIN_LAST_SECOND = 3
39+
enum keypadCanStatus_e : int8_t {
40+
KPS_FRESH = -1,
41+
KPS_RX_WITHIN_LAST_SECOND = 0,
42+
KPS_NO_RX_WITHIN_LAST_SECOND = 1
4343
};
4444

4545
enum keyMode_e : uint8_t {

0 commit comments

Comments
 (0)