-
Notifications
You must be signed in to change notification settings - Fork 310
Adafruit_I2C.reverseByteOrder() in Adafruit_I2C.py is broken #48
Comments
crickets |
I'm going to close this one as won't fix as the reverseByteOrder function is now effectively dead code that isn't used by the updated Adafruit_Python_* libraries (the libraries from this README: https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/). The original bug adafruit/adafruit-beaglebone-io-python#82 against the older Adafruit_I2C.py source for this function gets at the core issue that it's not really possible to make this function work for all 16-bit and 32-bit input. During the refactoring that created the updated libraries they switched from using this reverseByteOrder function to doing explicit byte order changes with the Python struct module. With no more dependencies let's plan to delete this function entirely. For now I'll change the function to throw a warning/error to catch if any dependency was missed and warn of the deprecation. |
Throwing an error now based on deprecation from: #48
@tdicola thanks for handling this issue |
@tdicola: this issue for
Adafruit_I2C.reverseByteOrder()
inadafruit-beaglebone-io-python
was raised by @phrogger:adafruit/adafruit-beaglebone-io-python#82
@jwcooper commented in adafruit-beaglebone-io-python/Adafruit_I2C.py:
However,
Adafruit_I2C
now resides in this repo.reverseByteOrder()
is located in Adafruit_GPIO/I2C.pyThe text was updated successfully, but these errors were encountered: