Line 164... |
Line 164... |
164 |
|
164 |
|
165 |
|
165 |
|
166 |
if(check_new_sms()) // Je odpoved "OK"? |
166 |
if(check_new_sms()) // Je odpoved "OK"? |
167 |
{ |
167 |
{ |
168 |
// printf(lcd_putc,"736 655 250"); |
168 |
// printf(lcd_putc,"736 655 250"); |
169 |
delay_ms(5000); |
169 |
delay_ms(1000); |
170 |
} |
170 |
} |
171 |
else |
171 |
else |
172 |
{ |
172 |
{ |
173 |
read_sms(); |
173 |
read_sms(); |
174 |
|
174 |
|
Line 296... |
Line 296... |
296 |
set_pwm1_duty(0); |
296 |
set_pwm1_duty(0); |
297 |
set_pwm2_duty(0); |
297 |
set_pwm2_duty(0); |
298 |
del_sms(); |
298 |
del_sms(); |
299 |
break; |
299 |
break; |
300 |
} |
300 |
} |
301 |
|
301 |
|
302 |
if (toupper(odp[0]) == 'H') |
302 |
if (toupper(odp[0]) == 'H') |
303 |
{ |
303 |
{ |
304 |
set_pwm1_duty(VYKON); |
304 |
set_pwm1_duty(VYKON); |
305 |
set_pwm2_duty(VYKON); |
305 |
set_pwm2_duty(VYKON); |
306 |
Delay_ms(10000); |
306 |
Delay_ms(10000); |
Line 362... |
Line 362... |
362 |
fprintf(VRTULE,"[[TRUBKO[["); // " TRUBKO " |
362 |
fprintf(VRTULE,"[[TRUBKO[["); // " TRUBKO " |
363 |
Delay_ms(3000); |
363 |
Delay_ms(3000); |
364 |
set_pwm1_duty(0); |
364 |
set_pwm1_duty(0); |
365 |
set_pwm2_duty(0); |
365 |
set_pwm2_duty(0); |
366 |
del_sms(); |
366 |
del_sms(); |
367 |
} |
367 |
} |
368 |
} |
368 |
} |
369 |
read_time(); |
369 |
read_time(); |
370 |
time=strtoul(odp,&ptr,10); |
370 |
time=strtoul(odp,&ptr,10); |
371 |
if((time >= 30 && time <= 32) || (time >= 0 && time <= 2) || (time >= 45 && time <= 47) || (time >= 15 && time <= 17)) |
371 |
if((time >= 30 && time <= 32) || (time >= 0 && time <= 2) || (time >= 45 && time <= 47) || (time >= 15 && time <= 17)) |
372 |
{ |
372 |
{ |