Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I2C slave support (originally by bjoham) (#5226)
* I2C slave support; resolving conflicts against current master * removed unused argument, updateded to hopefully pass Travis * cleaning up commit as requested by #5162 (review) * cleaning up commit as requested by #5162 (review) * type fix
- Loading branch information
cb05b86
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something is wrong with this commit...
I try to compile sonoff-tasmota (generic-8285) and with this commit I got compilation error:
cb05b86
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reaper7 Could you open an issue on this, please?
cb05b86
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@earlephilhower you beat me to it :)
The fix is to change this signature:
void TwoWire::onReceiveService(uint8_t* inBytes, int numBytes)
To this:
void TwoWire::onReceiveService(uint8_t* inBytes, size_t numBytes)
What irks me is why this wasn't caught before merging? Shouldn't CI have failed or something? Or is Tasmota building with stricter compiler settings, e.g.: stricter warnings-as-errors?
cb05b86
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've never used this lib, and I imagine there are no examples that use this method. CI only checks that what's needed for the examples compiles. Arduino core is smart enough to not compile unneeded external libs.
cb05b86
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I can confirm that the core is not compiling if using this wire library in a sketch. So, Sonoff-Tasmota will not compile either under this commit. Tasmota does not have stricter compiler settings.
Also I can confirm that the fix proposed don't work either. The Arduino core stills not compile.
cb05b86
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue opened by @mcspr
#5287