Save loop delay, speed, and time to settings on shutdown

This commit is contained in:
Dan Paulat 2023-06-14 22:56:26 -05:00
parent 8f0afbcd1c
commit e8e3032dcd
11 changed files with 138 additions and 19 deletions

View file

@ -51,7 +51,8 @@ SettingsVariable<T>::operator=(SettingsVariable&&) noexcept = default;
template<class T>
inline auto FormatParameter(const T& value)
{
if constexpr (std::is_integral_v<T> || std::is_same_v<T, std::string>)
if constexpr (std::is_integral_v<T> || std::is_floating_point_v<T> ||
std::is_same_v<T, std::string>)
{
return value;
}