summaryrefslogtreecommitdiff
path: root/src/Components/DateTime
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-02-16 18:32:36 +0100
committerJF <jf@codingfield.com>2020-02-16 18:32:36 +0100
commit167a0ffc873a2442af43d0347efd00f84932b8cc (patch)
tree2e131e3c97b1c67e0dff6bab516a1fe5958e1741 /src/Components/DateTime
parent52539a5ff1b6f52c65b032ef1668d43d4df2dc24 (diff)
Add touch panel port to lvgl.
PoC of user interaction with 3 screen (clock, menu and app).
Diffstat (limited to 'src/Components/DateTime')
-rw-r--r--src/Components/DateTime/DateTimeController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Components/DateTime/DateTimeController.cpp b/src/Components/DateTime/DateTimeController.cpp
index 81d45416..ed6d70fb 100644
--- a/src/Components/DateTime/DateTimeController.cpp
+++ b/src/Components/DateTime/DateTimeController.cpp
@@ -49,7 +49,7 @@ void DateTime::UpdateTime(uint32_t systickCounter) {
previousSystickCounter = 0xffffff - (rest - systickCounter);
}
- currentDateTime += std::chrono::milliseconds (systickDelta*10);
+ currentDateTime += std::chrono::seconds (correctedDelta);
auto dp = date::floor<date::days>(currentDateTime);
auto time = date::make_time(currentDateTime-dp);