blackbox/main.c

changeset 145
80be5eb283d3
parent 144
8f07a8d15826
equal deleted inserted replaced
144:8f07a8d15826 145:80be5eb283d3
258 tmp = buffer[1]-'0'; 258 tmp = buffer[1]-'0';
259 if (tmp < 6) { 259 if (tmp < 6) {
260 slot[tmp].unlimitedfuel = 0; 260 slot[tmp].unlimitedfuel = 0;
261 if ((buffer[2]-'0') != 0) slot[tmp].unlimitedfuel = 1; 261 if ((buffer[2]-'0') != 0) slot[tmp].unlimitedfuel = 1;
262 RS232_puts_p(ok); 262 RS232_puts_p(ok);
263 } RS232_puts_p(error); 263 } else RS232_puts_p(error);
264 break; 264 break;
265 265
266 case 'L': // Limit maximum speed for a car 266 case 'L': // Limit maximum speed for a car
267 tmp = buffer[2]-'0'; 267 tmp = buffer[2]-'0';
268 if (tmp > 9) 268 if (tmp > 9)

mercurial