-
this thread is as here: SMBUS 100KHz, repeated start, Arduino Uno - Networking, Protocols, and Devices - Arduino Forum
Started separate thread since I want to know how to remove warnings. -
I am using this SMBUS library for timeout functionality:
Arduino Playground - SoftwareI2CLibrary -
However it has some warnings:
SoftI2CMaster.h:269:7: warning: unused parameter 'addr' [-Wunused-parameter]
bool i2c_start(uint8_t addr)
^
SoftI2CMaster.h:287:7: warning: unused parameter 'addr' [-Wunused-parameter]
bool i2c_rep_start(uint8_t addr)
^
SoftI2CMaster.h:312:7: warning: unused parameter 'addr' [-Wunused-parameter]
void i2c_start_wait(uint8_t addr)
^
SoftI2CMaster.h:359:6: warning: unused parameter 'value' [-Wunused-parameter]
bool i2c_write(uint8_t value)
^
SoftI2CMaster.h:436:9: warning: unused parameter 'last' [-Wunused-parameter]
uint8_t i2c_read(bool last)
-
- I think to remove these warning, since these are warning of unused varaibles in function so
writing this, will remove the warning.I am not sure if this is right way to do.
if(unused_var){}
- I think to remove these warning, since these are warning of unused varaibles in function so
-
Attached updated files are in post#2 here:
SMBUS 100KHz, repeated start, Arduino Uno - Networking, Protocols, and Devices - Arduino Forum