pololu / pololu-rpi-slave-arduino-library

An Arduino library that helps establish I2C communication between an A-Star 32U4 Robot Controller and a Raspberry Pi, with the Arduino acting as the I2C slave.
MIT License
30 stars 21 forks source link

fixed missing return #6

Closed gcl8a closed 4 years ago

gcl8a commented 4 years ago

uint8_t PololuTWISlave::handleEvent(uint8_t event) is declared with a return type yet didn't return anything, which could cause trouble if someone tried to read the return value. I added a trivial return 0; I'm sure there is more useful info top return, but this is at least safe.