Skip to content

Commit e7f9fbb

Browse files
committed
returning bool, not error code - fixed
1 parent 6d10c42 commit e7f9fbb

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/sfeTk/sfeDevSoilMoisture.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,12 @@ sfeTkError_t sfeDevSoilMoisture::begin(sfeTkII2C *theBus)
3232

3333
return _theBus->ping();
3434
}
35-
// //----------------------------------------------------------------------------------------
36-
// sfeTkError_t sfeDevSoilMoisture::init(void)
37-
// {
38-
// if (_theBus == nullptr)
39-
// return false;
4035

41-
// // No real init, just make sure that the device is connected
42-
// return _theBus->ping();
43-
// }
4436
//----------------------------------------------------------------------------------------
4537
sfeTkError_t sfeDevSoilMoisture::LEDOff(void)
4638
{
4739
if (_theBus == nullptr)
48-
return false;
40+
return kSTkErrFail;
4941

5042
// Send the command to turn the LED off
5143
return _theBus->writeByte(kCommandLEDOff);
@@ -54,7 +46,7 @@ sfeTkError_t sfeDevSoilMoisture::LEDOff(void)
5446
sfeTkError_t sfeDevSoilMoisture::LEDOn(void)
5547
{
5648
if (_theBus == nullptr)
57-
return false;
49+
return kSTkErrFail;
5850

5951
// Send the command to turn the LED on
6052
return _theBus->writeByte(kCommandLEDOn);

0 commit comments

Comments
 (0)