Skip to content

Commit

Permalink
LG2: Try setting a duty cycle of 33%
Browse files Browse the repository at this point in the history
Clutching at straws now.
For #1298
  • Loading branch information
crankyoldgit committed Oct 19, 2020
1 parent 51bd97f commit 6746cb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ir_LG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void IRsend::sendLG2(uint64_t data, uint16_t nbits, uint16_t repeat) {
sendGeneric(kLg2HdrMark, kLg2HdrSpace, kLg2BitMark, kLgOneSpace, kLg2BitMark,
kLgZeroSpace, kLg2BitMark, kLgMinGap, kLgMinMessageLength, data,
nbits, 38, true, 0, // Repeats are handled later.
50);
33); // Use a duty cycle of 33% (Testing)

// TODO(crackn): Verify the details of what repeat messages look like.
// Repeat
Expand Down
2 changes: 1 addition & 1 deletion test/ir_LG_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ TEST(TestSendLG2, SendDataOnly) {
irsend.reset();
irsend.sendLG2(0x880094D);
EXPECT_EQ(
"f38000d50"
"f38000d33"
"m3200s9900"
"m480s1600m480s550m480s550m480s550m480s1600m480s550m480s550m480s550"
"m480s550m480s550m480s550m480s550m480s550m480s550m480s550m480s550"
Expand Down

0 comments on commit 6746cb0

Please sign in to comment.