mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
rgbled_ncp5623c:Needs 2 retries
This commit is contained in:
committed by
Daniel Agar
parent
74903cf215
commit
8e04985940
@@ -142,6 +142,7 @@ RGBLED_NCP5623C::init()
|
|||||||
int
|
int
|
||||||
RGBLED_NCP5623C::probe()
|
RGBLED_NCP5623C::probe()
|
||||||
{
|
{
|
||||||
|
_retries = 2;
|
||||||
int status = write(NCP5623_LED_CURRENT, NCP5623_LED_OFF);
|
int status = write(NCP5623_LED_CURRENT, NCP5623_LED_OFF);
|
||||||
|
|
||||||
if (status == PX4_ERROR) {
|
if (status == PX4_ERROR) {
|
||||||
|
|||||||
Reference in New Issue
Block a user