Skip to content

Commit 1747fe2

Browse files
author
harbaum
committed
Even more WebUSB sanity checks
1 parent 18542b1 commit 1747fe2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ftduino/libraries/Ftduino/Ftduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
#include "Arduino.h"
1111

12-
#ifdef IN_FTDUINO_LIB
12+
#ifndef IN_FTDUINO_LIB
1313
#if !defined(OUTPUT_DRIVER_MC33879A) && !defined(OUTPUT_DRIVER_AUTO)
1414
#error "Only the MC33879A or AUTO output drivers are currently supported!"
1515
#endif
16-
#else
16+
1717
// make sure WebUSB is being used with correct settings
1818
#if USB_VERSION == 0x210 && !defined(WebUSB_h)
1919
#error "Please include WebUSB.h if WebUSB is being used!"

ftduino/libraries/FtduinoSimple/FtduinoSimple.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#else
2626
#warning "Error, no output driver configured"
2727
#endif
28-
#else
28+
2929
// make sure WebUSB is being used with correct settings
3030
#if USB_VERSION == 0x210 && !defined(WebUSB_h)
3131
#error "Please include WebUSB.h if WebUSB is being used!"

0 commit comments

Comments
 (0)