-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1307 from realglobe-Inc/fix/uart
Fix broken `uart` module These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later `uart` module for ESP32 is broken. This PR fixes it. * In the current code, `uart:open/1,2` takes `uart0`, `uart1` or `uart2` as `peripheral` option. However, Nif takes either one of `UART0`, `UART1` or `UART2`. This PR corrects the behaviour of `uart:open` to match that of Nif. * The Nif of `uart` module does not send a reply parsable by `port:call`, which stops the process from executing further codes. This PR fixes that by using `port_send_reply` function.
- Loading branch information
Showing
3 changed files
with
27 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters