Skip to content

Commit cfd7f68

Browse files
committed
I2SStream isActive()
1 parent e052bb5 commit cfd7f68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/AudioI2S/I2SStream.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ class I2SStream : public AudioStream {
134134
/// Provides access to the driver
135135
I2SDriver *driver() { return &i2s; }
136136

137+
/// Returns true if i2s is active
137138
operator bool() override { return is_active; }
138139

140+
/// Returns true if i2s is active
139141
bool isActive() { return is_active;}
140142

141143
protected:

0 commit comments

Comments
 (0)