Skip to content

Commit

Permalink
Added function for dummy read of register
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier gillet committed Feb 27, 2012
1 parent 34ada87 commit f3f60f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devices/switch.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ class DebouncedSwitches {
Register::Init();
memset(state_, 0xff, sizeof(state_));
}


static inline T DummyRead() {
return Register::Read();
}

static inline void Read() {
T value = Register::Read();
T mask = 1 << (num_inputs - 1);
Expand Down

0 comments on commit f3f60f7

Please sign in to comment.