We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b77fb commit fa5a1e1Copy full SHA for fa5a1e1
variants/ARDUINO_NANO33BLE/variant.cpp
@@ -165,10 +165,12 @@ void initVariant() {
165
digitalWrite(PIN_ENABLE_I2C_PULLUP, HIGH);
166
167
// Disable UARTE0 which is initially enabled by the bootloader
168
- nrf_uarte_task_trigger(NRF_UARTE0, NRF_UARTE_TASK_STOPRX);
169
- while (!nrf_uarte_event_check(NRF_UARTE0, NRF_UARTE_EVENT_RXTO)) ;
170
- NRF_UARTE0->ENABLE = 0;
171
- NRF_UART0->ENABLE = 0;
+ if (nrf_uarte_event_check(NRF_UARTE0, NRF_UARTE_EVENT_RXTO)) {
+ nrf_uarte_task_trigger(NRF_UARTE0, NRF_UARTE_TASK_STOPRX);
+ while (!nrf_uarte_event_check(NRF_UARTE0, NRF_UARTE_EVENT_RXTO));
+ NRF_UARTE0->ENABLE = 0;
172
+ NRF_UART0->ENABLE = 0;
173
+ }
174
175
NRF_PWM_Type* PWM[] = {
176
NRF_PWM0, NRF_PWM1, NRF_PWM2
0 commit comments