Merge pull request #88 from rymanluk/port_fix

nimble/phy: Fix setting correct GPIO PORT
This commit is contained in:
Łukasz Rymanowski
2018-05-14 10:38:57 +02:00
committed by GitHub
+1 -1
View File
@@ -1235,7 +1235,7 @@ ble_phy_dbg_time_setup_gpiote(int index, int pin)
(GPIOTE_CONFIG_MODE_Task << GPIOTE_CONFIG_MODE_Pos) |
((pin & 0x1F) << GPIOTE_CONFIG_PSEL_Pos) |
#if NRF52840_XXAA
((pin > 31) << GPIOTE_CONFIG_PORT_Pos);
((port == NRF_P1) << GPIOTE_CONFIG_PORT_Pos);
#else
0;
#endif