Skip to content

Commit

Permalink
fix build on ESP8266
Browse files Browse the repository at this point in the history
  • Loading branch information
Paciente8159 committed Nov 15, 2023
1 parent de277d9 commit 662381a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion uCNC/src/hal/boards/esp8266/esp8266.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
platform = espressif8266
framework = arduino
board = d1
; build_src_filter = +<*>-<src/tinyusb>
build_src_filter = +<*>-<src/hal/mcu/virtual>
; lib_deps =
; https://github.com/tzapu/WiFiManager/archive/refs/heads/master.zip
build_flags = -DBOARD=BOARD_WEMOS_D1 -DENABLE_WIFI
Expand Down
13 changes: 8 additions & 5 deletions uCNC/src/hal/mcus/virtual/mcu_virtual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
Also without the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
*/
#include "../../../cnc.h"
#if (BOARD == BOARD_VIRTUAL)

#ifdef __cplusplus
extern "C"
{
#include "../../../cnc.h"
#if (MCU == MCU_VIRTUAL_WIN)
#endif

#include <stdio.h>
#include <conio.h>
Expand Down Expand Up @@ -325,7 +327,7 @@ extern "C"

static volatile VIRTUAL_MAP virtualmap;

void* ioserver(void *args)
void *ioserver(void *args)
{
HANDLE hPipe;
TCHAR chBuf[sizeof(VIRTUAL_MAP)];
Expand Down Expand Up @@ -800,6 +802,7 @@ extern "C"
}
return 0;
}

#endif
#ifdef __cplusplus
}
#endif
#endif

0 comments on commit 662381a

Please sign in to comment.