-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys: rt-thread: Check for U8X8_PIN_NONE.
RT-Thread use signed value for its pin numbers, while using -1 for PIN_NONE. So when using U8X8_PIN_NONE, RT-Thread will incorrectly interpret the pin as positive integer (255). This patch wraps rt_pin_xxx functions to detect this condition. It does limit the selectable pin ranges to 0-255, however it should be enough for now. Signed-off-by: Yilin Sun <imi415@imi.moe>
- Loading branch information
Showing
1 changed file
with
72 additions
and
46 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