From d51abbc5e03637d15760074a8612ee8d3cfac82f Mon Sep 17 00:00:00 2001 From: bahbka Date: Tue, 8 Jul 2014 10:26:46 +0400 Subject: Fixed bug with font changing. --- appinfo.json | 4 ++-- resources/configuration.html | 2 +- src/pebble-my-data.c | 2 +- stuff/pebble-my-data.pbw | Bin 23828 -> 24191 bytes 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/appinfo.json b/appinfo.json index f50ad67..cd6ab51 100644 --- a/appinfo.json +++ b/appinfo.json @@ -3,8 +3,8 @@ "shortName": "My Data", "longName": "My Data", "companyName": "bahbka", - "versionCode": 211, - "versionLabel": "2.1.1", + "versionCode": 212, + "versionLabel": "2.1.2", "watchapp": { "watchface": false }, diff --git a/resources/configuration.html b/resources/configuration.html index c3d2cd1..8305a2d 100644 --- a/resources/configuration.html +++ b/resources/configuration.html @@ -54,7 +54,7 @@ vim: sw=2 ts=2 expandtab ai -->

My Data

- v2.1.1, by bahbka + v2.1.2, by bahbka
diff --git a/src/pebble-my-data.c b/src/pebble-my-data.c index 9065a57..aba14d8 100644 --- a/src/pebble-my-data.c +++ b/src/pebble-my-data.c @@ -523,7 +523,7 @@ void in_received_handler(DictionaryIterator *received, void *context) { Tuple *font_tuple = dict_find(received, KEY_FONT); uint8_t font = 0; - if (font) { + if (font_tuple) { font = font_tuple->value->uint8; } diff --git a/stuff/pebble-my-data.pbw b/stuff/pebble-my-data.pbw index 62da971..c70ce91 100644 Binary files a/stuff/pebble-my-data.pbw and b/stuff/pebble-my-data.pbw differ -- cgit v1.2.3