Skip to content

Commit

Permalink
Update AudioOutputPWM.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
earlephilhower authored Oct 8, 2024
1 parent c8594c2 commit b7862d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AudioOutputPWM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ bool AudioOutputPWM::ConsumeSample(int16_t sample[2]) {
ms[LEFTCHANNEL] = ms[RIGHTCHANNEL] = (ttl>>1) & 0xffff;
}

ms[LEFTCHANNEL] = Amplify(ms[LEFTCHANNEL]);
ms[RIGHTCHANNEL] = Amplify(ms[RIGHTCHANNEL]);
ms[LEFTCHANNEL] = Amplify(ms[LEFTCHANNEL]);
ms[RIGHTCHANNEL] = Amplify(ms[RIGHTCHANNEL]);

if (pwm.available()) {
if (pwm.available()) {
pwm.write((int16_t) ms[0]);
pwm.write((int16_t) ms[1]);
return true;
Expand Down

0 comments on commit b7862d7

Please sign in to comment.