Commit ed202b33 authored by Projects's avatar Projects

Always initialize variables!

parent 7039ad0a
......@@ -41,7 +41,7 @@
static int x_lcd, y_lcd;
static float sina, cosa;
static int calib;
static int calib = 0;
lsm303_smpl iron;
static void compass_redraw(struct ui_widget *w)
......@@ -132,7 +132,7 @@ void compass_main(void *params)
/*main loop*/
while(1) {
if(xQueueReceive(appQueue, &evt, 100 / portTICK_RATE_MS)) {
if(xQueueReceive(appQueue, &evt, 50 / portTICK_RATE_MS)) {
switch(evt.type) {
case BUTTON_PRESSED:
if(evt.data.button == BUT_TR)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment