mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 18:52:30 +00:00
Merge branch 'master' into 2.5-changes
This commit is contained in:
@@ -25,10 +25,10 @@ void OPT3001Sensor::setup()
|
||||
{
|
||||
OPT3001_Config newConfig;
|
||||
|
||||
newConfig.RangeNumber = B1100;
|
||||
newConfig.ConvertionTime = B0;
|
||||
newConfig.Latch = B1;
|
||||
newConfig.ModeOfConversionOperation = B11;
|
||||
newConfig.RangeNumber = 0b1100;
|
||||
newConfig.ConvertionTime = 0b0;
|
||||
newConfig.Latch = 0b1;
|
||||
newConfig.ModeOfConversionOperation = 0b11;
|
||||
|
||||
OPT3001_ErrorCode errorConfig = opt3001.writeConfig(newConfig);
|
||||
if (errorConfig != NO_ERROR) {
|
||||
|
||||
Reference in New Issue
Block a user