Skip to content

Commit

Permalink
evaluate None as bool in the template
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Nov 16, 2023
1 parent daa5c94 commit 807a049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hvcc/generators/c2daisy/templates/HeavyDaisy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 807a049

Please sign in to comment.