Skip to content

Commit

Permalink
Merge pull request #224 from mbehr1/bug222_gpio_debounce_nonfct
Browse files Browse the repository at this point in the history
Suppress GPIO impulses during debounce delay
  • Loading branch information
andig committed Jan 2, 2016
2 parents 296b8ae + a7b8329 commit 3c90800
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ endif(POLICY CMP0011)

set(VZLOGGER_MAJOR_VERSION 0)
set(VZLOGGER_MINOR_VERSION 4)
set(VZLOGGER_SUB_VERSION 8)
set(VZLOGGER_SUB_VERSION 9)
set(VERSION_SEP "-")
set(VZLOGGER_SHORT_VERSION "${VZLOGGER_MAJOR_VERSION}${VERSION_SEP}${VZLOGGER_MINOR_VERSION}")
set(VZLOGGER_VERSION "${VZLOGGER_SHORT_VERSION}${VERSION_SEP}${VZLOGGER_SUB_VERSION}")
Expand Down
2 changes: 2 additions & 0 deletions src/protocols/MeterS0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ void MeterS0::counter_thread()
while ( (-1 == nanosleep(&ts, &rem)) && (errno == EINTR) ) {
ts = rem;
}
// now check status to retrieve any pending events
(void)_hwif->status();
}
} else { // non-blocking case:
int state = _hwif->status();
Expand Down

0 comments on commit 3c90800

Please sign in to comment.