mirror of
https://github.com/apache/nuttx.git
synced 2026-08-16 01:43:15 +00:00
drivers/sensors: Fix incompatible pointer type for bool
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
a229e4a399
commit
346c3a1e83
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue