Skip to content

Commit 77522bd

Browse files
author
harbaum
committed
Verify webusb settings
1 parent 816e962 commit 77522bd

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

ftduino/libraries/WebUSB/WebUSB.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525

2626
#include "WebUSB.h"
2727

28+
#if USB_VERSION != 0x210
29+
#error "Error! Please select 'Tools / USB Version / WebUSB'"
30+
#endif
31+
2832
#ifdef ARDUINO_ARCH_SAMD
2933

3034
#define USB_SendControl USBDevice.sendControl

ftduino/libraries/WebUSB/examples/Console/Console.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
#if USB_VERSION != 0x210
13-
#error "Bitte board 'ftDuino (WebUSB)' auswählen"
13+
#error "Bitte 'Werkzeuge / USB Version / WebUSB' auswählen"
1414
#endif
1515

1616
WebUSB WebUSBSerial(1 /* https:// */, "harbaum.github.io/ftduino/webusb/console");

0 commit comments

Comments
 (0)