Adafruit-GFX-Library icon indicating copy to clipboard operation
Adafruit-GFX-Library copied to clipboard

In Adafruit_GFX.cpp, variables currstate and laststate are not initialized

Open mitchb1 opened this issue 3 years ago • 0 comments

  • Arduino board: Mega2560

  • Arduino IDE version (found in Arduino -> About Arduino menu): CLion/PlatformIO

  • List the steps to reproduce the problem below (if possible attach a sketch or copy the sketch code in too):

In Adafruit_GFX.cpp, variables currstate and laststate are not initialized. This can cause incorrect results from functions justPressed and justReleased.

mitchb1 avatar Sep 06 '22 17:09 mitchb1