1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-19 08:31:11 +00:00

Ensures remaining_delays_ is set properly after [reset/flush]_writing.

This commit is contained in:
Thomas Harte 2019-10-13 21:39:25 -04:00
parent 8d87e9eb1c
commit 3b165a78f2

View File

@ -59,10 +59,12 @@ int Line::write_data_time_remaining() {
}
void Line::reset_writing() {
remaining_delays_ = 0;
events_.clear();
}
void Line::flush_writing() {
remaining_delays_ = 0;
for(const auto &event : events_) {
switch(event.type) {
default: break;