Commit 0e6a2e03 authored by Laczen JMS's avatar Laczen JMS Committed by Anas Nashif
Browse files

drivers: eeprom simulator fix range error



This PR fixes a bug in the eeprom simulator making the last byte
part of the readable/writeable range

Signed-off-by: default avatarLaczen JMS <laczenjms@gmail.com>
parent 2b8d9c58
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ static int eeprom_range_is_valid(const struct device *dev, off_t offset,
{
	const struct eeprom_sim_config *config = DEV_CONFIG(dev);

	if ((offset + len) < config->size) {
	if ((offset + len) <= config->size) {
		return 1;
	}