server sim base

make check_input_high inline and move it to header file
This commit is contained in:
2026-02-14 14:32:46 +01:00
parent f17676d4ef
commit 9345620fec
2 changed files with 4 additions and 6 deletions
-5
View File
@@ -71,8 +71,3 @@ void Simulator_base::reboot()
// Reboot the simulator // Reboot the simulator
system("reboot"); system("reboot");
} }
constexpr bool Simulator_base::check_input_high(uint32_t data, uint16_t pinnummer)
{
return (data & (1 << pinnummer));
}
+4 -1
View File
@@ -160,7 +160,10 @@ class Simulator_base : public QObject
* @return true If the bit is high * @return true If the bit is high
* @return false If the bit is low * @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: signals:
/** /**
* @brief Signal emitted when the ui of the simulator changes * @brief Signal emitted when the ui of the simulator changes