mirror of
https://github.com/pschatzmann/arduino-audio-tools.git
synced 2024-09-21 02:17:31 +00:00
I2SStream operator bool() as is_active
This commit is contained in:
parent
df3ad65443
commit
a89510a453
@ -134,6 +134,10 @@ class I2SStream : public AudioStream {
|
||||
/// Provides access to the driver
|
||||
I2SDriver *driver() { return &i2s; }
|
||||
|
||||
operator bool() override { return is_active; }
|
||||
|
||||
bool isActive() { return is_active;}
|
||||
|
||||
protected:
|
||||
I2SDriver i2s;
|
||||
int mute_pin;
|
||||
|
Loading…
Reference in New Issue
Block a user