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

Reload data only if an output is found.

This commit is contained in:
Thomas Harte 2021-09-09 22:07:03 -04:00
parent d8e42c4379
commit a6221ca322

View File

@ -257,7 +257,10 @@ class ParallelClock: public ClockStorage {
// A no-op for now.
} else {
// Write to the RTC. Which in this implementation also sets up a future read.
data_ = uint8_t(perform(data_));
const auto result = perform(data_);
if(result != NoResult) {
data_ = uint8_t(result);
}
}
// MAGIC! The transaction took 0 seconds.