         SREG = oldSREG;
 #else
         led_state = 1 - led_state;
-        digitalWrite(ledtoggle, led_state);
-#endif
-        }
-    }
+        digitalWrite(ledg, led_state);
+#endif
+    }
+}
+
     
 #ifdef ardubridge
 unsigned int mySerialRead()  {

    
    serialFlush:
        digitalWrite(CN2clock, HIGH); // TEMPORARY - un-inhibit Cn2.2
        digitalWrite(ledtoggle, LOW);

        do {
            if ('s' == Serial.read()) {

    usbDeviceDisconnect();
    unsigned char i;
    i = 0;
    while(--i){             // fake USB disconnect for > 250 ms
        _delay_ms(1);
    }
    usbDeviceConnect();
