File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ bool sfDevAS7343::setAgain(sfe_as7343_again_t again)
584
584
return true ;
585
585
}
586
586
587
- bool sfDevAS7343::flickerDetectionEnableDisable (bool enable)
587
+ bool sfDevAS7343::enableFlickerDetection (bool enable)
588
588
{
589
589
sfe_as7343_reg_enable_t enableReg; // Create a register structure for the Enable register
590
590
@@ -602,14 +602,9 @@ bool sfDevAS7343::flickerDetectionEnableDisable(bool enable)
602
602
return true ;
603
603
}
604
604
605
- bool sfDevAS7343::enableFlickerDetection (void )
606
- {
607
- return flickerDetectionEnableDisable (true );
608
- }
609
-
610
605
bool sfDevAS7343::disableFlickerDetection (void )
611
606
{
612
- return flickerDetectionEnableDisable (false );
607
+ return enableFlickerDetection (false );
613
608
}
614
609
615
610
bool sfDevAS7343::isFlickerDetectionValid (void )
Original file line number Diff line number Diff line change @@ -978,17 +978,11 @@ class sfDevAS7343
978
978
// / or clearing the FD_EN bit in the ENABLE register (ksfAS7343RegEnable).
979
979
// / @param enable True to enable the flicker detection, false to disable.
980
980
// / @return True if successful, false if it fails.
981
- bool flickerDetectionEnableDisable (bool enable);
982
-
983
- // / @brief Enable Flicker Detection
984
- // / @details This method enables flicker detection by calling the
985
- // / flickerDetectionEnableDisable method with true.
986
- // / @return True if successful, false if it fails.
987
- bool enableFlickerDetection (void );
981
+ bool enableFlickerDetection (bool enable = true );
988
982
989
983
// / @brief Disable Flicker Detection
990
984
// / @details This method disables flicker detection by calling the
991
- // / flickerDetectionEnableDisable method with false.
985
+ // / enableFlickerDetection method with false.
992
986
// / @return True if successful, false if it fails.
993
987
bool disableFlickerDetection (void );
994
988
You can’t perform that action at this time.
0 commit comments