zephyrproject-rtos / gsoc-2022-arduino-core

Arduino Core Zephyr Module (GSoC 2022 Project)
Apache License 2.0
43 stars 11 forks source link

zephyrSerial: Fix misdetection arduino_serial1 #82

Closed DhruvaG2000 closed 10 months ago

DhruvaG2000 commented 11 months ago

This is a bug fix, that fixes build failure for nRF52940DK https://github.com/zephyrproject-rtos/gsoc-2022-arduino-core/issues/77

DT_NODE_EXISTS value is true even if the status is disabled, so it caused misdetection. Use DT_NODE_HAS_STATUS to detect the status of the arduino_serial1 node is ok.

DhruvaG2000 commented 10 months ago

@beriberikix , @szczys @alvarowolfx , I am merging this as it's been pending for 2 weeks now, and no objections have been raised.