From a6221ca322ed706f187834b9fe63cb40d0435ba1 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 9 Sep 2021 22:07:03 -0400 Subject: [PATCH] Reload data only if an output is found. --- Components/AppleClock/AppleClock.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Components/AppleClock/AppleClock.hpp b/Components/AppleClock/AppleClock.hpp index 2ba395650..e153f2eae 100644 --- a/Components/AppleClock/AppleClock.hpp +++ b/Components/AppleClock/AppleClock.hpp @@ -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.