Browse Source

Improved lock handling

Stan Janssen 6 years ago
parent
commit
36da8d3dc4
1 changed files with 4 additions and 2 deletions
  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