autopilot icon indicating copy to clipboard operation
autopilot copied to clipboard

'group' not correctly applied from setup for hardware objects

Open sneakers-the-rat opened this issue 3 years ago • 0 comments

Setup asks for a 'group' to put the hardware objects in, but doesn't respect it when saving in prefs.json

eg. a task asks for

HARDWARE = {
    'LEDS' : {
        'MYLED': {...}
    }
}

So during setup you set group = LEDS and name = MYLED but it will be saved in prefs as

{
"HARDWARE": {
    {
        "GPIO": {"MYLED": {...}}
    }
}}

sneakers-the-rat avatar Feb 18 '22 01:02 sneakers-the-rat