Minor thingies..
[speedometer] / util.c
diff --git a/util.c b/util.c
index ed20591..a20f0b1 100644 (file)
--- a/util.c
+++ b/util.c
@@ -14,7 +14,8 @@
 
        You should have received a copy of the GNU General Public License
        along with this program.  If not, see <http://www.gnu.org/licenses/>.
- ****/
+****/
+
 #include <math.h>
 #include <location/location-gps-device.h>
 #include <location/location-gpsd-control.h>
@@ -25,6 +26,9 @@
 #include "callbacks.h"
 #include "ui.h"
 
+
+gdouble unit_array[] = {3.6};
+
 #define GCONF_KEY "/apps/Maemo/speedometer/disclaimer"
 
 static LocationGPSDevice *device = NULL;
@@ -66,11 +70,13 @@ void interpret_speed_from_gps(AppData* appdata, gdouble speed) {
 
        g_print("Speed is %s km/h\n", charspeed);
 
+       // set the main digits
        guint i = 3;
        while(i) {
                i--;
                set_nth_digit(appdata, i, g_ascii_digit_value(charspeed[i]));
        }
+
        repaint_all_digits(appdata);
 
        g_free(charspeed);
@@ -87,7 +93,7 @@ static show_dialog() {
                        "which means (among other things) that you don't have to pay "
                        "a dime for it. "
                        "If you think, however, that this software is worth it, you "
-                       "can always drop me a postcard.\n\n"
+                       "can always drop me a postcard. (or a speeding ticket :)\n\n"
                        "Wellu Mäkinen\n"
                        "PO BOX\n"
                        "33580 Tampere\n"