Project

General

Profile

Revision 441bdf28

ID441bdf28949cd9e407e89407ea97b74207b16337
Parent d3bce721
Child 2ab6ce95

Added by RicardoSilva91 almost 7 years ago

tempo

View differences:

tpf/tempo.c
138 138
uint8_t increase()
139 139
{
140 140
	// "Time values under 1 min are set to the second"
141
	if(relogio.minutos < 1)
141
	if(relogio.minutos < 1 && relogio.horas == 0)
142 142
        {
143 143
		increaseTime(1);
144 144
        }
......
169 169
		decreaseTime(1);	
170 170
	}
171 171
	// "Time values from 1 to 3 min are set in multiples of 10 s"
172
	else if(relogio.minutos >= 1 && relogio.minutos <= 3 && relogio.horas == 0)
172
	else if(relogio.minutos >= 1 && relogio.minutos <= 3)
173 173
        {
174 174
		decreaseTime(10);
175 175
	}
176 176
	// "Time values larger than 3 min are set in multiples of 30 s"
177
	else if(relogio.minutos > 3 || relogio.horas > 0)
177
	else if(relogio.minutos > 3 )
178 178
        {
179 179
		decreaseTime(30);
180 180
        }

Also available in: Unified diff