temperature: Use format-warn at warn-temperature not after (#1897)

This commit is contained in:
Jake Howard 2019-10-16 17:45:49 +01:00 committed by Patrick Ziegler
parent 751c21cd37
commit 4ab251f33c

View File

@ -84,7 +84,7 @@ namespace modules {
}
string temperature_module::get_format() const {
if (m_temp > m_tempwarn) {
if (m_temp >= m_tempwarn) {
return FORMAT_WARN;
} else {
return DEFAULT_FORMAT;