summaryrefslogtreecommitdiffstats
path: root/low-can-binding/utils
diff options
context:
space:
mode:
Diffstat (limited to 'low-can-binding/utils')
-rw-r--r--low-can-binding/utils/timer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/low-can-binding/utils/timer.cpp b/low-can-binding/utils/timer.cpp
index f3cdd5e7..d21b7474 100644
--- a/low-can-binding/utils/timer.cpp
+++ b/low-can-binding/utils/timer.cpp
@@ -59,7 +59,7 @@ frequency_clock_t::frequency_clock_t(float frequency)
: unit_{1000000}, frequency_{frequency}, last_tick_{0}, time_function_{nullptr}
{
if(frequency_ <= 0)
- frequency_ = 1;
+ frequency_ = 2000;
}
frequency_clock_t::frequency_clock_t(float frequency, uint64_t last_tick, time_function_t time_function)
@@ -126,4 +126,4 @@ uint64_t frequency_clock_t::get_last_tick() const
void frequency_clock_t::tick(uint64_t timestamp)
{
last_tick_ = timestamp;
-} \ No newline at end of file
+}