Fix PWMAudio crash when no CB installed (#3012)

Fixes #3011
This commit is contained in:
Earle F. Philhower, III 2025-06-24 12:48:28 -07:00 committed by GitHub
parent 21f34396ee
commit 98419d884e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,7 @@ PWMAudio::PWMAudio(pin_size_t pin, bool stereo) {
_freq = 48000;
_arb = nullptr;
_cb = nullptr;
_cbd = nullptr;
_buffers = 8;
_bufferWords = 0;
_stereo = stereo;