Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!(PIND & (1 << PD5))) {
- _delay_ms(60);
- if (!(PIND & (1 << PD5))) {
- interration_cnt++;
- btnFlag = 1;
- if (btnFlag = 1 && interration_cnt == 1) {
- s_hour++;
- btnFlag = 0;
- }
- } else {
- interration_cnt = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment