diff --git a/FC_Board/lib/pysquared.py b/FC_Board/lib/pysquared.py index 3e8822f3..e7998baf 100755 --- a/FC_Board/lib/pysquared.py +++ b/FC_Board/lib/pysquared.py @@ -17,6 +17,7 @@ from bitflags import bitFlag, multiBitFlag, multiByte from micropython import const from debugcolor import co +from collections import OrderedDict # Hardware Specific Libs import pysquared_rfm9x # Radio @@ -118,25 +119,28 @@ def __init__(self): "pwr": 23, "st": 80000, } - self.hardware = { - "I2C0": False, - "SPI0": False, - "I2C1": False, - "UART": False, - "IMU": False, - "Mag": False, - "Radio1": False, - "SDcard": False, - "NEOPIX": False, - "WDT": False, - "TCA": False, - "CAN": False, - "Face0": False, - "Face1": False, - "Face2": False, - "Face3": False, - "Face4": False, - } + + self.hardware = OrderedDict( + [ + ("I2C0", False), + ("SPI0", False), + ("I2C1", False), + ("UART", False), + ("Radio1", False), + ("IMU", False), + ("Mag", False), + ("SDcard", False), + ("NEOPIX", False), + ("WDT", False), + ("TCA", False), + ("CAN", False), + ("Face0", False), + ("Face1", False), + ("Face2", False), + ("Face3", False), + ("Face4", False), + ] + ) """ NVM Parameter Resets