mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
[misc] davis2ivy: suppress unused var warning
This commit is contained in:
@@ -101,7 +101,8 @@ void open_port(const char* device) {
|
||||
|
||||
/// disable transactions and empty queue
|
||||
void reset_station() {
|
||||
char newline = '\n', bytes = 0;
|
||||
char newline = '\n';
|
||||
char bytes __attribute__ ((unused));
|
||||
fprintf(stderr, "Resetting communication\n");
|
||||
// send a \n (wakeup and cancel all running transmits)
|
||||
bytes = write(fd, &newline, 1);
|
||||
|
||||
Reference in New Issue
Block a user