code cleanup

This commit is contained in:
2018-11-30 16:14:45 +01:00
parent 4dd765b341
commit adbdc93315
8 changed files with 60 additions and 42 deletions

View File

@@ -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) {