mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
simbase
add check input high
This commit is contained in:
@@ -68,3 +68,8 @@ void Simulator_base::reboot()
|
||||
// Reboot the simulator
|
||||
system("reboot");
|
||||
}
|
||||
|
||||
bool Simulator_base::check_input_high(uint32_t data, uint16_t pinnummer)
|
||||
{
|
||||
return (data & (1 << pinnummer));
|
||||
}
|
||||
|
||||
@@ -94,6 +94,8 @@ class Simulator_base : public QObject
|
||||
|
||||
void shutdown();
|
||||
void reboot();
|
||||
|
||||
bool check_input_high(uint32_t data, uint16_t pinnummer);
|
||||
signals:
|
||||
void sim_changed();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user