Browse Source

LEDs until PRG is released

Klaas, Wilfried 6 years ago
parent
commit
7f6710a26f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      SPS/prgmode.ino

+ 3 - 1
SPS/prgmode.ino

@@ -19,10 +19,12 @@ void programMode() {
   else {
   else {
 #endif
 #endif
     dbgOutLn("PrgMode");
     dbgOutLn("PrgMode");
-    blinkAll();
+    // light up all LEDs
+    doPort(0x08);
     while (digitalRead(SW_PRG) == 0) {
     while (digitalRead(SW_PRG) == 0) {
       // waiting for PRG to release
       // waiting for PRG to release
     }
     }
+    blinkAll();
     prgMode = ADDRESS;
     prgMode = ADDRESS;
     addr = 0;
     addr = 0;
     do {
     do {