Skip to content

Commit

Permalink
Even more WebUSB sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
harbaum committed Sep 16, 2022
1 parent 18542b1 commit 1747fe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ftduino/libraries/Ftduino/Ftduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

#include "Arduino.h"

#ifdef IN_FTDUINO_LIB
#ifndef IN_FTDUINO_LIB
#if !defined(OUTPUT_DRIVER_MC33879A) && !defined(OUTPUT_DRIVER_AUTO)
#error "Only the MC33879A or AUTO output drivers are currently supported!"
#endif
#else

// make sure WebUSB is being used with correct settings
#if USB_VERSION == 0x210 && !defined(WebUSB_h)
#error "Please include WebUSB.h if WebUSB is being used!"
Expand Down
2 changes: 1 addition & 1 deletion ftduino/libraries/FtduinoSimple/FtduinoSimple.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#else
#warning "Error, no output driver configured"
#endif
#else

// make sure WebUSB is being used with correct settings
#if USB_VERSION == 0x210 && !defined(WebUSB_h)
#error "Please include WebUSB.h if WebUSB is being used!"
Expand Down

0 comments on commit 1747fe2

Please sign in to comment.