drv_hrt: Fix hrt_abstime literal argument names

The user-defined literals for milli- and microseconds
should have argument names matching their units. The
current argument names 'seconds' is probably an oversight.
This commit is contained in:
Morten Fyhn Amundsen
2021-03-19 15:48:55 +01:00
committed by Lorenz Meier
parent 0d4f48a8d2
commit 19533377b3
+4 -4
View File
@@ -225,14 +225,14 @@ constexpr hrt_abstime operator "" _s(unsigned long long seconds)
return hrt_abstime(seconds * 1000000ULL); return hrt_abstime(seconds * 1000000ULL);
} }
constexpr hrt_abstime operator "" _ms(unsigned long long seconds) constexpr hrt_abstime operator "" _ms(unsigned long long milliseconds)
{ {
return hrt_abstime(seconds * 1000ULL); return hrt_abstime(milliseconds * 1000ULL);
} }
constexpr hrt_abstime operator "" _us(unsigned long long seconds) constexpr hrt_abstime operator "" _us(unsigned long long microseconds)
{ {
return hrt_abstime(seconds); return hrt_abstime(microseconds);
} }
} /* namespace time_literals */ } /* namespace time_literals */