Oops - fix broken SPI driver due to missing bit inversion on a port mask.
[pub/USBasp.git] / Projects / RelayBoard / RelayBoard.c
index 2f084f3..b71b353 100644 (file)
@@ -44,7 +44,7 @@
 int main(void)
 {
        SetupHardware();
 int main(void)
 {
        SetupHardware();
-       
+
        sei();
 
        for (;;)
        sei();
 
        for (;;)
@@ -69,13 +69,6 @@ void SetupHardware(void)
        PORTC &= ~ALL_RELAYS;
 }
 
        PORTC &= ~ALL_RELAYS;
 }
 
-
-/** Event handler for the library USB Configuration Changed event. */
-void EVENT_USB_Device_ConfigurationChanged(void)
-{
-       USB_Device_EnableSOFEvents();
-}
-
 /** Event handler for the library USB Unhandled Control Packet event. */
 void EVENT_USB_Device_UnhandledControlRequest(void)
 {
 /** Event handler for the library USB Unhandled Control Packet event. */
 void EVENT_USB_Device_UnhandledControlRequest(void)
 {
@@ -110,7 +103,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void)
                                                break;
                                }
                        }
                                                break;
                                }
                        }
-                       
+
                        break;
                case 0x01:
                        if (USB_ControlRequest.bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE))
                        break;
                case 0x01:
                        if (USB_ControlRequest.bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE))
@@ -137,7 +130,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void)
                                                ControlData[1] = (PORTC & RELAY4) ? 2 : 3;
                                                break;
                                }
                                                ControlData[1] = (PORTC & RELAY4) ? 2 : 3;
                                                break;
                                }
-                               
+
                                if (ControlData[1])
                                  Endpoint_Write_Control_Stream_LE(ControlData, sizeof(ControlData));
 
                                if (ControlData[1])
                                  Endpoint_Write_Control_Stream_LE(ControlData, sizeof(ControlData));
 
@@ -147,3 +140,4 @@ void EVENT_USB_Device_UnhandledControlRequest(void)
                        break;
        }
 }
                        break;
        }
 }
+