Skip to content

Commit

Permalink
Fix caixianlin beep/sound error with intensity being something else t…
Browse files Browse the repository at this point in the history
…han 0 (#239)
  • Loading branch information
LucHeart authored May 29, 2024
1 parent 77f4b62 commit 43b233d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/radio/rmt/CaiXianlinEncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ std::vector<rmt_data_t> Rmt::CaiXianlinEncoder::GetSequence(std::uint16_t transm
break;
case ShockerCommandType::Sound:
typeVal = 0x03;
intensity = 0; // Sound intensity must be 0 for some shockers, otherwise it wont work, or they soft lock until restarted
break;
default:
return {}; // Invalid type
Expand Down

0 comments on commit 43b233d

Please sign in to comment.