code cleanup
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
#ifdef ATMEGA
|
||||
#include <usb.h>
|
||||
#include <usb.h>
|
||||
#endif
|
||||
|
||||
#define USB_LED_ON 1
|
||||
@@ -169,10 +169,9 @@ usb_dev_handle * HardwareSetup::usbOpenDevice(int vendor, char * vendorName,
|
||||
|
||||
void HardwareSetup::run() {
|
||||
|
||||
struct TransStruct buffer[6];
|
||||
|
||||
if (HARDWARE_VERSION == 2) {
|
||||
#ifdef ATMEGA
|
||||
#ifdef ATMEGA
|
||||
struct TransStruct buffer[6];
|
||||
int testmode = 0;
|
||||
|
||||
int nBytes = 0;
|
||||
@@ -309,8 +308,8 @@ void HardwareSetup::run() {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
} // end HARDWARE_VERSION 2
|
||||
#endif // ATMEGA
|
||||
} // end HARDWARE_VERSION 2
|
||||
|
||||
else if (HARDWARE_VERSION == 3) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user