Fix deafen semantics

This commit is contained in:
Allen Hill
2026-09-18 13:10:52 -07:00
parent 2c85305c0d
commit 6b22f14e6d
5 changed files with 62 additions and 7 deletions
+4 -1
View File
@@ -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> {