Skip to content

Commit 7c2da6a

Browse files
authored
Merge pull request #390 from bjoernQ/bugfix/allow-into_analog-for-InputOnlyAnalog-pins
Allow `into_analog` for all analog capable pins
2 parents 3f7181f + 08c0135 commit 7c2da6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp-hal-common/src/gpio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ impl<MODE, RA, IRA, PINTYPE, SIG, const GPIONUM: u8> GpioPin<MODE, RA, IRA, PINT
13601360
where
13611361
RA: BankGpioRegisterAccess,
13621362
IRA: InteruptStatusRegisterAccess,
1363-
PINTYPE: IsOutputPin,
1363+
PINTYPE: IsAnalogPin,
13641364
SIG: GpioSignal,
13651365
{
13661366
pub fn into_analog(self) -> GpioPin<Analog, RA, IRA, PINTYPE, SIG, GPIONUM> {

0 commit comments

Comments
 (0)