felias-fogg / SoftI2CMaster

Software I2C Arduino library
GNU General Public License v3.0
368 stars 100 forks source link

Inline ASM in bool i2c_start_wait(uint8_t) compilation warning. #31

Closed SolidHal closed 5 years ago

SolidHal commented 6 years ago

The complier complains: ......./Arduino/libraries/SoftI2CMaster/SoftI2CMaster.h: In function 'bool i2c_start_wait(uint8_t)': ...../Arduino/libraries/SoftI2CMaster/SoftI2CMaster.h:566:1: warning: no return statement in function returning non-void [-Wreturn-type] }

Throwing a "return" before the close brace on line 566 seems to quiet it, but I'm not sure if it keeps its original function as my asm is a little rusty. I'll put together a little test and post the results.