mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 12:57:27 +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
|
/// disable transactions and empty queue
|
||||||
void reset_station() {
|
void reset_station() {
|
||||||
char newline = '\n', bytes = 0;
|
char newline = '\n';
|
||||||
|
char bytes __attribute__ ((unused));
|
||||||
fprintf(stderr, "Resetting communication\n");
|
fprintf(stderr, "Resetting communication\n");
|
||||||
// send a \n (wakeup and cancel all running transmits)
|
// send a \n (wakeup and cancel all running transmits)
|
||||||
bytes = write(fd, &newline, 1);
|
bytes = write(fd, &newline, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user