Skip to content

Commit 7313c3a

Browse files
committed
Fix T330 MakePayload return value on error
1 parent 5c8b915 commit 7313c3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/radio/rmt/T330Encoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ uint64_t Rmt::T330Encoder::MakePayload(uint16_t shockerId, uint8_t channel, Shoc
3131
intensity = 0; // The remote always sends 0, I don't know what happens if you send something else.
3232
break;
3333
default:
34-
return false; // Invalid type
34+
return 0; // Invalid type
3535
}
3636

3737
uint8_t channelVal = 0; // CH1 is 0b0000 and CH2 is 0b1110 on my remote but other values probably work.
@@ -43,7 +43,7 @@ uint64_t Rmt::T330Encoder::MakePayload(uint16_t shockerId, uint8_t channel, Shoc
4343
channelVal = 0b1110;
4444
break;
4545
default:
46-
return false; // Invalid channel
46+
return 0; // Invalid channel
4747
}
4848

4949
// Intensity must be between 0 and 100

0 commit comments

Comments
 (0)