Skip to content

Conversation

@nicola-lunghi
Copy link
Contributor

Added support for uart hardware flow control

Copy link
Contributor

@arfoll arfoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix all the strings that are too long

src/x86/up.c Outdated
mraa_up_set_pininfo(b, 9, "GND", (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 }, -1);
mraa_up_set_pininfo(b, 10, "UART1_RX", (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }, 15);
mraa_up_set_pininfo(b, 11, "GPIO17", (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }, 17);
mraa_up_set_pininfo(b, 11, "UART1_RTS",(mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }, 17);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That string is too long for the array, actually a bunch of those are to long already, max size is 7 (as 7+1 == 8 in C with the \0 char).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi the maximum name size is 12 character
include/mraa_internal_types.h: char name[MRAA_PIN_NAME_SIZE]; /**< Pin's real world name */
api/mraa/common.h:#define MRAA_PIN_NAME_SIZE 12

@nicola-lunghi
Copy link
Contributor Author

Removed up related changes and put in a separate pull request

Signed-off-by: Nicola Lunghi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants