Explorar o código

Improved lock handling

Stan Janssen %!s(int64=6) %!d(string=hai) anos
pai
achega
36da8d3dc4
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      minimalmode3.asm

+ 4 - 2
minimalmode3.asm

@@ -308,8 +308,9 @@ lock
     bcf     PORTA, 4
     bsf     PORTA, 5
     call    delay100        ; Blocking 100ms delay
+    call    delay100        ; Blocking 100ms delay
     bsf     PORTA, 4        ; Stop the motor
-    call    delay1000
+    call    delay2000       ; Wait 2 seconds to charge the capacitor back up..
     goto    idle
     
 
@@ -320,9 +321,10 @@ unlock
     bsf     PORTA, 4
     bcf     PORTA, 5
     call    delay100        ; Blocking 100ms delay
+    call    delay100        ; Blocking 100ms delay
     bsf     PORTA, 5        ; Stop the motor
     
-    call    delay2000
+    call    delay2000       ; Wait 2 seconds to charge the capacitor back up.
     goto    enter