Update stm32_bh1750.c

Fix mistakes in comments and snerr
This commit is contained in:
simbit18
2022-07-26 09:48:48 +02:00
committed by Xiang Xiao
parent 645ff50609
commit 62e4f8ee79
+2 -2
View File
@@ -47,7 +47,7 @@
* Name: stm32_bh1750initialize * Name: stm32_bh1750initialize
* *
* Description: * Description:
* Initialize and register the MPL115A Pressure Sensor driver. * Initialize and register the BH1750FVI Ambient Light driver.
* *
* Input Parameters: * Input Parameters:
* devno - The device number, used to build the device path as /dev/lightN * devno - The device number, used to build the device path as /dev/lightN
@@ -79,7 +79,7 @@ int board_bh1750_initialize(int devno, int busno)
ret = bh1750fvi_register(devpath, i2c, BH1750FVI_I2C_ADDR); ret = bh1750fvi_register(devpath, i2c, BH1750FVI_I2C_ADDR);
if (ret < 0) if (ret < 0)
{ {
snerr("ERROR: Error registering BM180\n"); snerr("ERROR: Error registering BH1750FVI\n");
} }
return ret; return ret;