fix nrf52832 build 2

This commit is contained in:
hathach 2018-09-04 23:25:08 +07:00
parent b9e8e3cd1f
commit f4a98e909c
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ void common_hal_neopixel_write (const digitalio_digitalinout_obj_t* digitalinout
// the LEDs and if you are not using the EasyDMA feature.
__disable_irq();
#ifdef NRF52840_XXAA
#ifdef NRF_P1
NRF_GPIO_Type* port = ( digitalinout->pin->port ? NRF_P1 : NRF_P0 );
#else
NRF_GPIO_Type* port = NRF_P0;