Tobis Programm forked to not destroy your golden files

Dependencies:   mbed

Fork of Robocode by PES 2 - Gruppe 1

Revision:
132:8ae08f41bb43
Parent:
130:670a954495bf
Child:
134:5c29654ce301
--- a/source/StartUp.cpp	Mon May 15 13:03:16 2017 +0000
+++ b/source/StartUp.cpp	Mon May 15 14:58:27 2017 +0000
@@ -4,10 +4,13 @@
 bool stb2 = false;
 bool stb3 = false;
 
+bool printf_state = 0;
+
 int idle()
 {
-
+    if(printf_state == 0) printf("idle1...\r\n"); printf_state = 1;
     if(get_user() == false && stb) {
+                printf_state = 0;
         return 15; // button pressed
     } else {
         stb = true;
@@ -17,8 +20,9 @@
 
 int idle2()
 {
-
+    if(printf_state == 0) printf("idle2...\r\n"); printf_state = 1;
     if(get_user() == false && stb2) {
+        printf_state = 0;
         return 25;
     } else {
         stb2 = true;