Skip to content

Commit

Permalink
Fix compiletime warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tfry-git committed Jun 15, 2024
1 parent ba7c18a commit db01e5b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/teensyPinMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ inline uint8_t teensyPinMap(uint8_t pin)
case 31:
return 20;
}


return pin - 24; // probably incorrect


#elif defined (__MKL26Z64__) //TeensyLC
Expand Down Expand Up @@ -93,6 +92,7 @@ inline uint8_t teensyPinMap(uint8_t pin)
case 69:
return 26;
}
return pin-14; // probably incorrect, but we need to return *something*

#elif defined ARDUINO_TEENSY40
return pin-14;
Expand All @@ -101,9 +101,6 @@ inline uint8_t teensyPinMap(uint8_t pin)
if (pin< 28) return pin-14;
return pin-24;
#endif



}


Expand Down

0 comments on commit db01e5b

Please sign in to comment.