mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 11:26:35 +00:00
Minor improvements
This commit is contained in:
@@ -103,6 +103,10 @@ void RemoteControl::startCommunication()
|
||||
write(mFifoFdOut, command.c_str(), command.size());
|
||||
qDebug().noquote().nospace() << "Sent: " << command;
|
||||
|
||||
if (commandObject["extra"] == "EXIT") {
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
while (true) {
|
||||
char buffer[1024];
|
||||
ssize_t bytesRead = read(mFifoFdIn, buffer, sizeof(buffer) - 1);
|
||||
|
||||
Reference in New Issue
Block a user