Skip to content

Commit f275c28

Browse files
committed
Use OutputMachine::initialize_with_equeue
1 parent 50c9982 commit f275c28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ int main() {
2525
inputs.read();
2626

2727
events::EventQueue equeue(EQUEUE_BUFFER_SIZE, equeue_buffer);
28-
auto initialize_event = equeue.event(&output, &OutputMachine::initialize);
28+
auto initialize_event = equeue.event(mbed::callback([&output, &equeue]() {
29+
output.initialize_with_equeue(equeue);
30+
}));
2931
auto suspend_event = equeue.event(&output, &OutputMachine::suspend);
3032

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

0 commit comments

Comments
 (0)