LiquidCrystal_I2C icon indicating copy to clipboard operation
LiquidCrystal_I2C copied to clipboard

Method size_t LiquidCrystal_I2C::write() does not return a value

Open grmcdorman opened this issue 2 years ago • 0 comments

inline size_t LiquidCrystal_I2C::write(uint8_t value) {
	send(value, Rs);
}

Missing return value. This is an error and can fail builds if warnings-as-errors is turned on for this issue. I believe this can also cause resets or other undefined behaviour if code tries to use the non-existent return value.

The method signature either needs a return type of void, or the method needs to return a value.

grmcdorman avatar Jan 03 '22 18:01 grmcdorman