summaryrefslogtreecommitdiff
path: root/hid/lib
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-09-13 13:08:43 +0300
committerMaxim Devaev <[email protected]>2022-09-13 13:08:43 +0300
commitd11c92676186a73e6ba30ec7cda9f4627596d60e (patch)
tree40b7a0c39ec303f16b850fd3d902bf9065db6a6a /hid/lib
parent967361f775dfba46ef0219e7f5d56d0f8253ef3d (diff)
style fix
Diffstat (limited to 'hid/lib')
-rw-r--r--hid/lib/drivers-stm32/board-stm32.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/hid/lib/drivers-stm32/board-stm32.h b/hid/lib/drivers-stm32/board-stm32.h
index b4164766..0e375b9c 100644
--- a/hid/lib/drivers-stm32/board-stm32.h
+++ b/hid/lib/drivers-stm32/board-stm32.h
@@ -42,8 +42,7 @@ namespace DRIVERS {
void periodic() override {
iwdg_feed();
if (is_micros_timed_out(_prev_ts, 100000)) {
- switch(_state)
- {
+ switch(_state) {
case 0:
digitalWrite(LED_BUILTIN, LOW);
break;
@@ -81,8 +80,7 @@ namespace DRIVERS {
}
void updateStatus(status status) override {
- switch (status)
- {
+ switch (status) {
case RX_DATA:
_rx_data = true;
break;
@@ -94,6 +92,7 @@ namespace DRIVERS {
break;
}
}
+
private:
unsigned long _prev_ts = 0;
uint8_t _state = 0;