]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
robofsm: Fixed warning
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 2 May 2008 12:51:39 +0000 (14:51 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 2 May 2008 12:51:39 +0000 (14:51 +0200)
src/robofsm/eb2008/robot_orte.c

index 7d8b50928d3f29fc22aa5de05153ba94491afe93..fe0a2b588c56c193f583c678d3a4fe8a6c4618b9 100644 (file)
@@ -19,6 +19,7 @@
 #include <laser-nav.h>
 #include "map_handling.h"
 #include <oledlib.h>
+#include <string.h>
 /* ---------------------------------------------------------------------- 
  * PUBLISHER CALLBACKS - GENERIC
  * ---------------------------------------------------------------------- */
@@ -235,7 +236,7 @@ void rcv_cmu_cb(const ORTERecvInfo *info, void *vinstance,
                        void *recvCallBackParam)
 {
        struct cmu_type *instance = (struct cmu_type *)vinstance;
-       static last_color = NO_BALL;
+       static enum ball_color last_color = NO_BALL;
        static unsigned char first = 1;
 
        switch (info->status) {