diff --git a/Algorithme b/Algorithme index 045324b..01147e8 100644 --- a/Algorithme +++ b/Algorithme @@ -40,6 +40,7 @@ debut: jour=0 ;Etat actuel : 1 si jour, 0 si nuit T=capteur ;Température actuelle lue par le capteur + sei JMP boucle_inf boucle_inf: @@ -47,7 +48,7 @@ boucle_inf: JMP boucle_inf HMJN: - ;Desactive les interruptions + cli WHILE(!HMJN) if(plus) @@ -81,14 +82,15 @@ HMJN: T=nuit=T_nuit-0.5 ;Retrait par pas de 0.5 Afficher(T_nuit) ;Affichage de la temperature de la nuit - ;Reactive les interruptions + sei RETI MH: - ;Desactive les interruptions + cli Jour_aff=0 while(!ok) if(MH) + seti RETI if(plus) Jour_aff=(Jour_aff+1)%7 @@ -100,6 +102,7 @@ MH: while(!ok) if(MH) + seti RETI if(plus) heure_jour[Jour_aff]=(heure_jour[Jour_aff]+1)%24 @@ -111,6 +114,7 @@ MH: while(!ok) if(MH) + seti RETI if(plus) minute_jour[Jour_aff]=(minute_jour[Jour_aff]+1)%24 @@ -122,6 +126,7 @@ MH: while(!ok) if(MH) + seti RETI if(plus) heure_nuit[Jour_aff]=(heure_nuit[Jour_aff]+1)%24 @@ -133,6 +138,7 @@ MH: while(!ok) if(MH) + seti RETI if(plus) minute_nuit[Jour_aff]=(minute_nuit[Jour_aff]+1)%24 @@ -142,7 +148,7 @@ MH: afficher minute_nuit[Jour_aff] call tempo - ;Reactive les interruptions + seti RETI reglage: -- libgit2 0.21.2