summaryrefslogtreecommitdiff
path: root/src/Components
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-02-10 21:05:33 +0100
committerJF <jf@codingfield.com>2020-02-10 21:05:33 +0100
commite65c9fa18138e8623d5f8e5e8f25fcf0e3d3cf67 (patch)
tree39fe9ee738ae5af8c59c83d329ad6072a93b9cfd /src/Components
parenta97faf8e9e84053d6db37549cc4211866cb3b89f (diff)
Integration of lvgl : continued...
Diffstat (limited to 'src/Components')
-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 ed6d70fb..81d45416 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::seconds (correctedDelta);
+ currentDateTime += std::chrono::milliseconds (systickDelta*10);
auto dp = date::floor<date::days>(currentDateTime);
auto time = date::make_time(currentDateTime-dp);