summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-10-13 08:33:49 -0700
committerKeith Packard <keithp@keithp.com>2018-10-13 08:33:49 -0700
commit983c36782527078ce667feb9eccd1ed0b97fbc29 (patch)
treeeef1e0daa3bd2bce86711a104e7884118763610c /src
parent346fdfb469f7f3c1f87a39dee5bfb4568631c28b (diff)
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 <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/ao_ms5607.c8
1 files changed, 4 insertions, 4 deletions
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