8000 add info for AVR usage with version 2.x.x · TuxRobotics/arduinoWebSockets@7ddcdc2 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 script crossorigin="anonymous" type="application/javascript" src="https://github.githubassets.com/assets/sessions-eed3aa0554dd.js" defer="defer">

Commit 7ddcdc2

Browse files
committed
add info for AVR usage with version 2.x.x
1 parent bde9717 commit 7ddcdc2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/WebSockets.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@
3333
#include <IPAddress.h>
3434
#endif
3535

36+
#ifdef ARDUINO_ARCH_AVR
37+
#error Version 2.x.x currently does not support Arduino with AVR since there is no support for std namespace of c++.
38+
#error Use Version 1.x.x. (ATmega branch)
39+
#else
3640
#include <functional>
41+
#endif
42+
3743

3844
#ifndef NODEBUG_WEBSOCKETS
3945
#ifdef DEBUG_ESP_PORT

0 commit comments

Comments
 (0)
0