diff --git a/hvcc/generators/c2daisy/templates/HeavyDaisy.cpp b/hvcc/generators/c2daisy/templates/HeavyDaisy.cpp index f153ae27..08579c5d 100644 --- a/hvcc/generators/c2daisy/templates/HeavyDaisy.cpp +++ b/hvcc/generators/c2daisy/templates/HeavyDaisy.cpp @@ -153,10 +153,10 @@ void HandleMidiMessage(MidiEvent m) int main(void) { hardware.Init(true); - {% if samplerate is not none %} + {% if samplerate %} hardware.SetAudioSampleRate({{samplerate}}); {% endif %} - {% if blocksize is not none %} + {% if blocksize %} hardware.SetAudioBlockSize({{blocksize}}); {% endif %} {% if has_midi %}