Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
H1rono committed Aug 20, 2024
1 parent f275c28 commit 029c93e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ int main() {

events::EventQueue equeue(EQUEUE_BUFFER_SIZE, equeue_buffer);
auto initialize_event = equeue.event(mbed::callback([&output, &equeue]() {
output.initialize_with_equeue(equeue);
if (output.state() != State::INITIALIZING) {
output.initialize_with_equeue(equeue);
}
}));
auto suspend_event = equeue.event(mbed::callback([&output]() {
output.suspend();
}));
auto suspend_event = equeue.event(&output, &OutputMachine::suspend);

const auto process_order = [&pc, &inputs, &output, &initialize_event, &suspend_event](std::uint8_t header) {
switch (header) {
Expand Down

0 comments on commit 029c93e

Please sign in to comment.