fixed warning: ISO C++ forbids compound-literals
This commit is contained in:
parent
0bd66807b2
commit
dca50737f5
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in a new issue