diff options
| author | Drashna Jaelre <drashna@live.com> | 2021-07-01 08:22:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-01 08:22:21 -0700 |
| commit | 0bde920817ef458f2ad61a66ce76a2535bbc261b (patch) | |
| tree | 9c7078bd67547fc44085cec1fbfbc82a47047161 /keyboards/preonic/rev3/rev3.c | |
| parent | 8f78be076debfc073741f1bc1ba424f1271191d9 (diff) | |
| download | qmk_firmware-0bde920817ef458f2ad61a66ce76a2535bbc261b.tar.gz qmk_firmware-0bde920817ef458f2ad61a66ce76a2535bbc261b.zip | |
Convert Dip Switch callbacks to boolean functions (#13399)
Diffstat (limited to 'keyboards/preonic/rev3/rev3.c')
| -rw-r--r-- | keyboards/preonic/rev3/rev3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/preonic/rev3/rev3.c b/keyboards/preonic/rev3/rev3.c index ec8a56108..0410d9a29 100644 --- a/keyboards/preonic/rev3/rev3.c +++ b/keyboards/preonic/rev3/rev3.c | |||
| @@ -53,11 +53,11 @@ void matrix_scan_kb(void) { | |||
| 53 | 53 | ||
| 54 | #ifdef DIP_SWITCH_ENABLE | 54 | #ifdef DIP_SWITCH_ENABLE |
| 55 | __attribute__((weak)) | 55 | __attribute__((weak)) |
| 56 | void dip_update(uint8_t index, bool active) {} | 56 | bool dip_update(uint8_t index, bool active) { return true;} |
| 57 | 57 | ||
| 58 | __attribute__((weak)) | 58 | __attribute__((weak)) |
| 59 | void dip_switch_update_user(uint8_t index, bool active) { | 59 | bool dip_switch_update_user(uint8_t index, bool active) { |
| 60 | dip_update(index, active); | 60 | return dip_update(index, active); |
| 61 | } | 61 | } |
| 62 | #endif | 62 | #endif |
| 63 | 63 | ||
