altos/drivers: Use stdbool in ao_ms5607.c
authorKeith Packard <keithp@keithp.com>
Sat, 13 Oct 2018 15:33:49 +0000 (08:33 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 13 Oct 2018 15:33:49 +0000 (08:33 -0700)
We don't have TRUE and FALSE anymore (they were pdclib specific).

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_ms5607.c

index a00d54c..e2327bf 100644 (file)
@@ -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