1
0
Fork 0

GCC 10 compatibility for Ploopy optical encoder (#11586)

This commit is contained in:
Glen D'souza 2021-01-19 07:53:54 +05:30 committed by GitHub
parent 677789df77
commit d24fe4f1ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 25 deletions

View file

@ -16,6 +16,34 @@
*/
#include "opt_encoder.h"
enum State state;
/* Variables used for scroll wheel functionality. */
bool lohif;
bool hilof;
int lowA;
int highA;
bool cLowA;
bool cHighA;
int lowIndexA;
int highIndexA;
bool lowOverflowA;
bool highOverflowA;
int lowB;
int highB;
bool cLowB;
bool cHighB;
int lowIndexB;
int highIndexB;
bool lowOverflowB;
bool highOverflowB;
int scrollThresholdA;
int scrollThresholdB;
int arLowA[SCROLLER_AR_SIZE];
int arHighA[SCROLLER_AR_SIZE];
int arLowB[SCROLLER_AR_SIZE];
int arHighB[SCROLLER_AR_SIZE];
/* Setup function for the scroll wheel. Initializes
the relevant variables. */
void opt_encoder_init(void) {