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 #79

Closed soburi closed 11 months ago

soburi commented 11 months ago

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.

Fix #77

DhruvaG2000 commented 11 months ago

Hi, thanks for the quick fix @soburi , I'll test in sometime and merge this if it looks okay.