Merge pull request #4407 from gudnimg/minor-opt-temp-gudni
optimisation: make `alert_automaton_mintemp` constructor `constexpr`
This commit is contained in:
commit
23503624d0
|
|
@ -1393,7 +1393,8 @@ void check_max_temp_raw()
|
|||
//! used to slow down text switching
|
||||
struct alert_automaton_mintemp {
|
||||
const char *m2;
|
||||
alert_automaton_mintemp(const char *m2):m2(m2){}
|
||||
inline constexpr alert_automaton_mintemp(const char *m2)
|
||||
: m2(m2) {}
|
||||
private:
|
||||
enum { ALERT_AUTOMATON_SPEED_DIV = 5 };
|
||||
enum class States : uint8_t { Init = 0, TempAboveMintemp, ShowPleaseRestart, ShowMintemp };
|
||||
|
|
|
|||
Loading…
Reference in New Issue