Browse Source

fixed warning: ISO C++ forbids compound-literals

pull/1/head
Josef Pavlik 8 years ago
committed by Scott Lahteine
parent
commit
dca50737f5
  1. 3
      Marlin/buzzer.h

3
Marlin/buzzer.h

@ -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);
} }
/** /**

Loading…
Cancel
Save