ossw / ossw-firmware-s120

OSSW firmware for S120 2.0.0 softdevice
42 stars 9 forks source link

watchface with empty array or object - not working on watch #43

Open animavitis opened 8 years ago

animavitis commented 8 years ago

if watchaface have empty array or object in json file, then it will not work in watch (emulator is working fine).

ie.

{
    "type": "watchset",
    "name": "xxxx",
    "apiVersion": 1,
    "data": {
        "screens": [
            {
                "id": "xxxxx",
                "controls": [
                    {
                        "type": "imageFromSet",
                        "position": {
                            "x": 90,
                            "y": 1
                        },
                        "style": {
                            "width": 32,
                            "height": 32
                        },
                        "imageSet": {
                            "type": "resource",
                            "id": "weather"
                        },
                        "source": {
                            "type": "extension",
                            "extensionId": "com.klapaucius.ossw.weather",
                            "property": "weatherId"
                        }
                    }
                ],
               "actions": {}
            }
        ]
    }
}

will not work in watch because of empty actions