Skip to content

Commit

Permalink
add bool accessor for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrandmartel committed Mar 9, 2020
1 parent c9d8220 commit 0413702
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/braille.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ class MetecDriver {
bool get() { return _btn_update; }
void set(bool value) { _btn_update = value; }
}
property bool btn_listen
{
bool get() { return _btn_listen; }
void set(bool value) { _btn_listen = value; }
}
#else
uint8_t btn_position;
ButtonState btn_state;
Expand Down Expand Up @@ -157,6 +162,7 @@ class MetecDriver {
uint8_t _btn_position = 0;
ButtonState _btn_state = ButtonState::Released;
bool _btn_update;
bool _btn_listen;
#endif
};

Expand Down

0 comments on commit 0413702

Please sign in to comment.