Skip to content
Snippets Groups Projects
Commit dca50737 authored by Josef Pavlik's avatar Josef Pavlik Committed by Scott Lahteine
Browse files

fixed warning: ISO C++ forbids compound-literals

parent 0bd66807
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,8 @@ class Buzzer { ...@@ -109,7 +109,8 @@ class Buzzer {
this->tick(); this->tick();
thermalManager.manage_heater(); thermalManager.manage_heater();
} }
this->buffer.enqueue((tone_t) { duration, frequency }); tone_t tone = { duration, frequency };
this->buffer.enqueue(tone);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment