mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
Update stm32_bh1750.c
Fix mistakes in comments and snerr
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user