From: Keith Packard Date: Sat, 13 Oct 2018 15:33:49 +0000 (-0700) Subject: altos/drivers: Use stdbool in ao_ms5607.c X-Git-Tag: 1.9~27^2~15 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=983c36782527078ce667feb9eccd1ed0b97fbc29;ds=sidebyside altos/drivers: Use stdbool in ao_ms5607.c We don't have TRUE and FALSE anymore (they were pdclib specific). Signed-off-by: Keith Packard --- diff --git a/src/drivers/ao_ms5607.c b/src/drivers/ao_ms5607.c index a00d54c8..e2327bf4 100644 --- a/src/drivers/ao_ms5607.c +++ b/src/drivers/ao_ms5607.c @@ -74,7 +74,7 @@ ao_ms5607_crc(uint8_t *prom) return n_rem; } -static int +static bool ao_ms5607_prom_valid(uint8_t *prom) { uint8_t crc; @@ -87,13 +87,13 @@ ao_ms5607_prom_valid(uint8_t *prom) if (*p++ + 1 > 1) break; if (i == 16) - return FALSE; + return false; crc = ao_ms5607_crc(prom); if (crc != (prom[15] & 0xf)) - return FALSE; + return false; - return TRUE; + return true; } static void