[SX127x] Fixed pin type

This commit is contained in:
jgromes 2021-06-14 21:08:46 +02:00
parent c8be880f95
commit aa53706b31
2 changed files with 2 additions and 2 deletions

View file

@ -1300,7 +1300,7 @@ void SX127x::setDirectAction(void (*func)(void)) {
setDio1Action(func); setDio1Action(func);
} }
void SX127x::readBit(uint8_t pin) { void SX127x::readBit(RADIOLIB_PIN_TYPE pin) {
updateDirectBuffer((uint8_t)digitalRead(pin)); updateDirectBuffer((uint8_t)digitalRead(pin));
} }

View file

@ -1038,7 +1038,7 @@ class SX127x: public PhysicalLayer {
\param pin Pin on which to read. \param pin Pin on which to read.
*/ */
void readBit(uint8_t pin); void readBit(RADIOLIB_PIN_TYPE pin);
#if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL) #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
protected: protected: