Skip to content

Commit 3b20a29

Browse files
committed
fix behaviour
1 parent e4674c3 commit 3b20a29

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Arduino_AlvikCarrier.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,12 @@ void Arduino_AlvikCarrier::setAllLeds(const uint8_t value){
547547
setLedBuiltin(value&1);
548548
//setIlluminator((value>>1)&1);
549549
if ((value>>1)&1){
550-
enableIlluminator();
550+
if ((behaviours|=1 == 1)&&isLifted()){
551+
prev_illuminator_state = true;
552+
}
553+
else{
554+
enableIlluminator();
555+
}
551556
}
552557
else{
553558
disableIlluminator();

0 commit comments

Comments
 (0)