diff --git a/server/simulator_base.cpp b/server/simulator_base.cpp index a71f721..dfbba6d 100644 --- a/server/simulator_base.cpp +++ b/server/simulator_base.cpp @@ -71,8 +71,3 @@ void Simulator_base::reboot() // Reboot the simulator system("reboot"); } - -constexpr bool Simulator_base::check_input_high(uint32_t data, uint16_t pinnummer) -{ - return (data & (1 << pinnummer)); -} diff --git a/server/simulator_base.hpp b/server/simulator_base.hpp index 539291d..4684dcf 100644 --- a/server/simulator_base.hpp +++ b/server/simulator_base.hpp @@ -160,7 +160,10 @@ class Simulator_base : public QObject * @return true If the bit is high * @return false If the bit is low */ - constexpr bool check_input_high(uint32_t data, uint16_t pinnummer); + inline bool check_input_high(uint32_t data, uint16_t pinnummer) + { + return (data & (1 << pinnummer)); + } signals: /** * @brief Signal emitted when the ui of the simulator changes