Skip to content

Commit

Permalink
Fixed typos in DriveMode switch for GpioPinDriveMode_InputPullUp & Gp…
Browse files Browse the repository at this point in the history
…ioPinDriveMode_OutputOpenDrain
  • Loading branch information
AdrianSoundy authored May 29, 2019
1 parent 1d59583 commit 5a61aec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,14 @@ HRESULT Library_win_dev_gpio_native_Windows_Devices_Gpio_GpioPin::NativeSetDrive
pull_down_en = GPIO_PULLDOWN_ENABLE;
break;
case GpioPinDriveMode_InputPullUp :
mode = GPIO_MODE_INPUT;
pull_up_en = GPIO_PULLUP_ENABLE;
break;
case GpioPinDriveMode_Output :
mode = GPIO_MODE_OUTPUT;
break;
case GpioPinDriveMode_OutputOpenDrain :
driveMode = GPIO_MODE_OUTPUT_OD;
mode = GPIO_MODE_OUTPUT_OD;
break;
case GpioPinDriveMode_OutputOpenDrainPullUp :
mode = GPIO_MODE_OUTPUT_OD;
Expand Down

0 comments on commit 5a61aec

Please sign in to comment.