diff options
| author | Keith Packard <keithp@keithp.com> | 2018-08-15 19:17:19 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2018-10-13 08:22:50 -0700 |
| commit | 684741765117611b7d666efbdfafd87c6199752c (patch) | |
| tree | 6ae2bc7cb368882c9767a9c01d0a0389adc2f988 /src/kernel/ao_fake_flight.c | |
| parent | c417ab1de2a083b5fcff2e081e4feb2a65887903 (diff) | |
altos: Use stdbool true/false instead of TRUE/FALSE
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_fake_flight.c')
| -rw-r--r-- | src/kernel/ao_fake_flight.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/ao_fake_flight.c b/src/kernel/ao_fake_flight.c index 8da0141c..ec8691e9 100644 --- a/src/kernel/ao_fake_flight.c +++ b/src/kernel/ao_fake_flight.c @@ -54,7 +54,7 @@ ao_fake_data_read(void) uint8_t *d = (void *) &ao_fake_next; if (getchar() == 0) - return FALSE; + return false; for (i = 0; i < sizeof (struct ao_data); i++) *d++ = getchar(); if (!ao_fake_has_offset) { @@ -64,7 +64,7 @@ ao_fake_data_read(void) } else ao_fake_next.tick += ao_fake_tick_offset; ao_fake_has_next = 1; - return TRUE; + return true; } static void @@ -118,10 +118,10 @@ ao_fake_calib_read(void) ) { printf ("Calibration data major version mismatch %d.%d <= %d.%d\n", ao_calib.major, ao_calib.minor, AO_FAKE_CALIB_MAJOR, AO_FAKE_CALIB_MINOR); - return FALSE; + return false; } ao_fake_calib_set(&ao_calib); - return TRUE; + return true; } static void |
