Skip to content

Commit

Permalink
Use OutputMachine::initialize_with_equeue
Browse files Browse the repository at this point in the history
  • Loading branch information
H1rono committed Aug 20, 2024
1 parent 50c9982 commit f275c28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ int main() {
inputs.read();

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

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

0 comments on commit f275c28

Please sign in to comment.