pthread_mutex_t recv_lock;
} receiver_arg;
+
+// Wrappers required as static variables can only be used in one file.
+void SetOffline(bool new_offline);
+bool IsOffline();
+
void SendCommand(UsbCommand *c);
void *uart_receiver(void *targ);
bool WaitForResponse(uint32_t cmd, UsbCommand* response);
extern serial_port sp;
-extern bool offline;
#endif // COMMS_H_