- write(giCoke_SerialFD, "d7\r\n", 4);
- write(giCoke_SerialFD, "d7\r\n", 4);
- write(giCoke_SerialFD, "d7\r\n", 4);
-
- if( WaitForColon() ) {
+ ret = 0;
+ do {
+ write(giCoke_SerialFD, "d7\r\n", 4);
+ } while( WaitForColon() && ret++ < 3 );
+
+ if( ret == 3 ) {