diff --git a/pyproject.toml b/pyproject.toml index bb3e0f9..8b874ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ classifiers = [ "Development Status :: 2 - Pre-Alpha", "Topic :: System :: Hardware" ] -license = "BSD-2" +license = "BSD-2-Clause" [project.urls] Homepage = "https://github.com/chmousset/python-regmap" @@ -34,4 +34,4 @@ doc = [ ] [tool.setuptools.packages.find] -include = ["regmap"] +include = ["regmap", "regmap.*"] diff --git a/regmap/devices/eeprom.py b/regmap/devices/eeprom.py index 1e9ef89..b83a46a 100644 --- a/regmap/devices/eeprom.py +++ b/regmap/devices/eeprom.py @@ -105,7 +105,7 @@ def __init__(self, bus, address=0b0101000): NextValue(bytes_read, bytes_read + 1), If(bytes_read != 0, Case(bytes_read, { - i + 1: [NextValue(eui.eui[i * 8 : i * 8 + 8], i2c_sink.data)] + i + 1: [NextValue(eui.eui[(5-i) * 8 : (5-i) * 8 + 8], i2c_sink.data)] for i in range(6)}), NextState("READ_SETUP"), ),