ldab / KXTJ3-1057

KXTJ3-1057 Tri-axis Digital Accelerometer - Arduino Library
MIT License
14 stars 8 forks source link

Fix HIGH_RESOLUTION directive #10

Closed nomakewan closed 1 year ago

nomakewan commented 1 year ago

This fixes the broken HIGH_RESOLUTION preprocessor directive by having the header define a private boolean variable with its state, thus allowing the CPP file to use that boolean the same way it would have used the preprocessor directive. In this way, compatibility with existing sketches is not impacted.

Resolves #6