Skip to content

Commit

Permalink
bugfix for issue #2: some repeated keys are not working
Browse files Browse the repository at this point in the history
  • Loading branch information
aanban committed Jan 17, 2025
1 parent 3689bfb commit c0e08d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/IrBeo4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ void IrBeo4::RxFsm(int64_t tsNew) {
case rxSt::S0: {
if(bZero==m_pCode) {
m_rxFSM=rxSt::S1; // next state --> continue start sequence
} else if(bStart==m_pCode) {
m_rxFSM=rxSt::Data; // next state --> collect data
} else { // frame corrupt
resetRxFsm("ERR: FSM_S_0 state failed ");
}
Expand All @@ -161,6 +163,8 @@ void IrBeo4::RxFsm(int64_t tsNew) {
case rxSt::S1: {
if(bZero==m_pCode) {
m_rxFSM=rxSt::Start; // next state --> continue start sequence
} else if(bStart==m_pCode) {
m_rxFSM=rxSt::Data; // next state --> collect data
} else { // frame corrupt
resetRxFsm("ERR: S1 state failed ");
}
Expand Down

0 comments on commit c0e08d4

Please sign in to comment.