drivers/sensors: Fix incompatible pointer type for bool

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-05-05 16:12:24 +08:00 committed by Alan Carvalho de Assis
parent a229e4a399
commit 346c3a1e83
2 changed files with 4 additions and 4 deletions

View File

@ -158,7 +158,7 @@ struct ds18b20_dev_s
/* Sensor functions */
static int ds18b20_active(FAR struct sensor_lowerhalf_s *lower,
unsigned char enabled);
bool enabled);
static int ds18b20_fetch(FAR struct sensor_lowerhalf_s *lower,
FAR char *buffer, size_t buflen);
@ -740,7 +740,7 @@ static int ds18b20_control(FAR struct sensor_lowerhalf_s *lower,
****************************************************************************/
static int ds18b20_active(FAR struct sensor_lowerhalf_s *lower,
unsigned char enabled)
bool enabled)
{
#ifdef CONFIG_SENSORS_DS18B20_POLL
bool start_thread = false;

View File

@ -110,7 +110,7 @@ struct hyt271_dev_s
/* Sensor functions */
static int hyt271_active(FAR struct sensor_lowerhalf_s *lower,
unsigned char enabled);
bool enabled);
static int hyt271_fetch(FAR struct sensor_lowerhalf_s *lower,
FAR char *buffer, size_t buflen);
@ -712,7 +712,7 @@ static int hyt271_control(FAR struct sensor_lowerhalf_s *lower,
****************************************************************************/
static int hyt271_active(FAR struct sensor_lowerhalf_s *lower,
unsigned char enabled)
bool enabled)
{
#ifdef CONFIG_SENSORS_HYT271_POLL
bool start_thread = false;