File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff 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// ----------------------------------------------------------------------------------------
4537sfeTkError_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)
5446sfeTkError_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 );
You can’t perform that action at this time.
0 commit comments