mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-10-27 04:30:29 +00:00
Fix deafen semantics
This commit is contained in:
+4
-1
@@ -120,7 +120,10 @@ void Bus::mute(bool mute) {
|
||||
phy_mute(mute);
|
||||
muted_ = mute; // Only update muted_ *AFTER* hardware has finished muting
|
||||
};
|
||||
void Bus::deafen(bool deaf) { deafened_ = deaf; }
|
||||
void Bus::deafen(bool deaf) {
|
||||
phy_deafen(deaf);
|
||||
deafened_ = deaf; // Only update deafened_ *AFTER* the phy has stopped acking
|
||||
}
|
||||
|
||||
auto Bus::read(Frame::Print print)
|
||||
-> expected<std::unique_ptr<Frame>, Error::Read> {
|
||||
|
||||
Reference in New Issue
Block a user