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:
parent
d8e42c4379
commit
a6221ca322
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user