Skip to content

Conversation

@carlescufi
Copy link
Member

Tested on nrf52840_pca10056

@carlescufi
Copy link
Member Author

@Vikrant8051 can you please review and test?

Copy link
Member

Choose a reason for hiding this comment

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

imperfect indentation

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed, thank you.

@vikrant8052
Copy link
Contributor

Ok. I will test

@carlescufi carlescufi force-pushed the on-off-mesh-gpio-sample branch from 5e630fe to fd35c41 Compare January 23, 2020 20:42
Copy link
Member

Choose a reason for hiding this comment

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

We could write it as vnd_user_data.current == STATE_ON ? 1 : 0 to be Misra-C compliant. A few more gpio_pin_set calls may need to be updated. Non blocking.

Copy link
Member

Choose a reason for hiding this comment

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

are you missing calls to gpio_pin_interrupt_configure for sw0 through sw3?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are indeed right, fixed.

Copy link
Member

Choose a reason for hiding this comment

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

Well spotted!

@carlescufi carlescufi force-pushed the on-off-mesh-gpio-sample branch from fd35c41 to 3ffe533 Compare January 25, 2020 21:24
@carlescufi
Copy link
Member Author

@MaureenHelm this should be ready now

@MaureenHelm MaureenHelm merged this pull request into zephyrproject-rtos:topic-gpio Jan 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants