drivers/pn532: adapt to new i2c API (recreated)#9458
drivers/pn532: adapt to new i2c API (recreated)#9458aabadie merged 1 commit intoRIOT-OS:new_i2c_iffrom
Conversation
|
@MichelRottleuthner Travis is complaining, there are some styles issues. |
7f4c4a5 to
d688375
Compare
|
the style issues must have been there berfore, added a (not so nice) fix anyway. |
|
@MichelRottleuthner I have no idea... maybe @kaspar030 has an idea ? |
Murdock uses the ubuntu 16.04 version, 1.72. Travis seems to be even older. Maybe that can be updated? @aabadie? |
|
Yeah, it would be great to update it so we don't have to add voodoo things here. |
d688375 to
df2f6ac
Compare
I prefer dropping Travis and switch to CircleCI like I did in #8729. The advantage is that it uses the official docker image riotdocker so the tools versions will be same has the ones on Murdock. |
How do it works for this PR ? |
df2f6ac to
5ab21b7
Compare
Revert the changes related to cppcheck and only keep the changes related to I2C. If Travis fails, it won't block the merge button anyway. |
5ab21b7 to
5591764
Compare
|
reverted cpp changes. Is the upgrade to the CI planned before the i2c rework branch will be merged? |
|
@aabadie you mean we can merge it right now without taking care of Travis ? |
Yes |
|
Let's go then ! |
drivers/pn532/pn532.c
Outdated
| #if ENABLE_DEBUG | ||
| #define PRINTBUFF printbuff | ||
| static void printbuff(char *buff, unsigned len) | ||
| static void printbuff(uint8_t *buff, unsigned len) |
There was a problem hiding this comment.
Is this a leftover of changes related to cppcheck ?
There was a problem hiding this comment.
nope - it's a slightly unrelated change but without this compiling with debug enabled will fail
There was a problem hiding this comment.
I would also revert this and open a separate PR. A least, it should not be part of the same commit containing I2C changes
There was a problem hiding this comment.
reverted. shall I open the other PR against new_i2c_if too? (master should work though)
There was a problem hiding this comment.
I think it should be fine against master.
| #endif | ||
| } | ||
| else { | ||
| if (mode == PN532_SPI) { |
There was a problem hiding this comment.
It should be PN532_I2C, no ?
There was a problem hiding this comment.
no. the condition is used to init chip select pin (SPI)
|
@aabadie I'll let you push the button then :) |
5591764 to
3dc7dbc
Compare
drivers/pn532: adapt to new i2c API (recreated)
drivers/pn532: adapt to new i2c API (recreated)
drivers/pn532: adapt to new i2c API (recreated)
Contribution description
clone of #9432 - with all the changes addressed. Accidentally dleted the old branch and wasn't able to reopen the PR.
Issues/PRs references
#6577