mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
server sim base
make check_input_high inline and move it to header file
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user