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 a00d54c8e04c35f82e71f8cc4edb1a05537c1356..e2327bf4113bbe985ba2e49180171088e16ead3c 100644 (file)
@@ -74,7 +74,7 @@ ao_ms5607_crc(uint8_t *prom)
        return n_rem;
 }
 
        return n_rem;
 }
 
-static int
+static bool
 ao_ms5607_prom_valid(uint8_t *prom)
 {
        uint8_t crc;
 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)
                if (*p++ + 1 > 1)
                        break;
        if (i == 16)
-               return FALSE;
+               return false;
 
        crc = ao_ms5607_crc(prom);
        if (crc != (prom[15] & 0xf))
 
        crc = ao_ms5607_crc(prom);
        if (crc != (prom[15] & 0xf))
-               return FALSE;
+               return false;
 
 
-       return TRUE;
+       return true;
 }
 
 static void
 }
 
 static void