1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Ensures that stop means stop.

This commit is contained in:
Thomas Harte 2019-10-28 22:12:45 -04:00
parent 1d790ec2a9
commit a5057e6540

View File

@ -132,6 +132,7 @@ void Line::update_delegate(bool level) {
++bits; ++bits;
if(!read_delegate_->serial_line_did_produce_bit(this, bit)) { if(!read_delegate_->serial_line_did_produce_bit(this, bit)) {
read_delegate_phase_ = ReadDelegatePhase::WaitingForZero; read_delegate_phase_ = ReadDelegatePhase::WaitingForZero;
if(bit) return;
} }
time_left -= time_left_in_bit_; time_left -= time_left_in_bit_;