fix incorrect comments
stm32_bh1750.c: barometer -> ambient light sensor xmc4_max6675.c: barometer -> temperature esp32_max6675.c: barometer -> temperature esp32s2_max6675.c: barometer -> temperature
This commit is contained in:
parent
0383377d78
commit
2868e28837
@ -74,7 +74,7 @@ int board_bh1750_initialize(int devno, int busno)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Then register the barometer sensor */
|
/* Then register the ambient light sensor */
|
||||||
|
|
||||||
ret = bh1750fvi_register(devpath, i2c, BH1750FVI_I2C_ADDR);
|
ret = bh1750fvi_register(devpath, i2c, BH1750FVI_I2C_ADDR);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
@ -71,7 +71,7 @@ int xmc4_max6675initialize(const char *devpath)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Then register the barometer sensor */
|
/* Then register the temperature sensor */
|
||||||
|
|
||||||
ret = max6675_register(devpath, spi);
|
ret = max6675_register(devpath, spi);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
@ -88,7 +88,7 @@ int board_max6675_initialize(int devno, int busno)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Then register the barometer sensor */
|
/* Then register the temperature sensor */
|
||||||
|
|
||||||
snprintf(devpath, sizeof(devpath), "/dev/temp%d", devno);
|
snprintf(devpath, sizeof(devpath), "/dev/temp%d", devno);
|
||||||
ret = max6675_register(devpath, spi);
|
ret = max6675_register(devpath, spi);
|
||||||
|
@ -88,7 +88,7 @@ int board_max6675_initialize(int devno, int busno)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Then register the barometer sensor */
|
/* Then register the temperature sensor */
|
||||||
|
|
||||||
snprintf(devpath, sizeof(devpath), "/dev/temp%d", devno);
|
snprintf(devpath, sizeof(devpath), "/dev/temp%d", devno);
|
||||||
ret = max6675_register(devpath, spi);
|
ret = max6675_register(devpath, spi);
|
||||||
|
Loading…
Reference in New Issue
Block a user