diff options
Diffstat (limited to 'CAN-binder/low-can-binding/utils/timer.cpp')
-rw-r--r-- | CAN-binder/low-can-binding/utils/timer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CAN-binder/low-can-binding/utils/timer.cpp b/CAN-binder/low-can-binding/utils/timer.cpp index 5c659ca..a7ed558 100644 --- a/CAN-binder/low-can-binding/utils/timer.cpp +++ b/CAN-binder/low-can-binding/utils/timer.cpp @@ -64,7 +64,7 @@ frequency_clock_t::frequency_clock_t(float frequency) /// @brief Return the period in ms given the frequency in hertz. /// @param[in] frequency - Frequency to convert, in hertz -float frequency_clock_t::frequency_to_period() +float frequency_clock_t::frequency_to_period() const { return frequency_ == 0 ? 0 : 1 / frequency_; } |