OLED 3Pi Encoders.ino example error

// 3Pi Example: Encoders.ino

void loop()
{
// ...
    
	bool errorLeft = encoders.checkErrorLeft();
    bool errorRight = encoders.checkErrorRight();

    if (encoders.checkErrorLeft())    <<<< SHOULD BE:  if (errorLeft)
    {
      // An error occurred on the left encoder channel.
      // Display it for the next 10 iterations and also beep.
      displayErrorLeftCountdown = 10;
      buzzer.playFromProgramSpace(encoderErrorLeft);
    }

    if (encoders.checkErrorRight())    <<<< SHOULD BE:  if (errorRight)
    {
      // An error occurred on the left encoder channel.
      // Display for the next 10 iterations and also beep.
      displayErrorRightCountdown = 10;
      buzzer.playFromProgramSpace(encoderErrorRight);
    }

    // Update the screen with encoder counts and error info.
// ...
}
1 Like

Hello,

Thanks for pointing this out! I just made a new release of the library that should fix the issue.

Kevin