Browse Source

fixed warning: ISO C++ forbids compound-literals

Josef Pavlik 8 years ago
parent
commit
dca50737f5
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/buzzer.h

+ 2
- 1
Marlin/buzzer.h View File

109
         this->tick();
109
         this->tick();
110
         thermalManager.manage_heater();
110
         thermalManager.manage_heater();
111
       }
111
       }
112
-      this->buffer.enqueue((tone_t) { duration, frequency });
112
+      tone_t tone = { duration, frequency };
113
+      this->buffer.enqueue(tone);
113
     }
114
     }
114
 
115
 
115
     /**
116
     /**

Loading…
Cancel
Save