From 807a0496f35e99585a1f586e62d1103b555a5f1e Mon Sep 17 00:00:00 2001 From: dreamer Date: Thu, 16 Nov 2023 12:22:26 +0100 Subject: [PATCH] evaluate None as bool in the template --- hvcc/generators/c2daisy/templates/HeavyDaisy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %}