Fix some compile warnings

This commit is contained in:
Scott Lahteine
2018-05-18 17:20:54 -05:00
parent af3a68f81f
commit 6f10d637ad
5 changed files with 16 additions and 16 deletions

View File

@@ -76,7 +76,7 @@ volatile uint8_t e_hit = 0; // Different from 0 when the endstops should be test
// Must be reset to 0 by the test function when finished.
// Install Pin change interrupt for a pin. Can be called multiple times.
void pciSetup(byte pin) {
void pciSetup(const int8_t pin) {
SBI(*digitalPinToPCMSK(pin), digitalPinToPCMSKbit(pin)); // enable pin
SBI(PCIFR, digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
SBI(PCICR, digitalPinToPCICRbit(pin)); // enable interrupt for the group