Skip to content

Commit

Permalink
Remove consumer from PolledProducer. (#669)
Browse files Browse the repository at this point in the history
* Remove consumer from PolledProducer.

* Roll back unnecessary change.
  • Loading branch information
bakerstu authored Oct 16, 2022
1 parent d25c8c6 commit 5c5b792
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/openlcb/PolledProducer.cxxtest
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ TEST_F(PolledProducerTest, NoFlip)
usleep(5 * POLL_USEC);
}

TEST_F(PolledProducerTest, Identify)
{
wait();
// producer identified invalid
expect_packet(":X1954522AN0501010114FE0000;");
// producer identified valid
expect_packet(":X1954422AN0501010114FE0001;");
// identify events global
send_packet(":X19970001N;");
wait_for_event_thread();
}

TEST_F(PolledProducerTest, FlipOnce)
{
wait();
Expand Down
2 changes: 1 addition & 1 deletion src/openlcb/PolledProducer.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public:

private:
Debouncer debouncer_;
BitEventPC producer_;
BitEventProducer producer_;
};

} // namespace openlcb
Expand Down

0 comments on commit 5c5b792

Please sign in to comment.