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:
simbit18 2023-08-03 14:29:37 +02:00 committed by Xiang Xiao
parent 0383377d78
commit 2868e28837
4 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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);

View File

@ -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);