Skip to content

Conversation

SergeAgeyev
Copy link
Contributor

Proposed changes allows to compile Arduino Emulator with MS Visual CPP (MSVC)

  • Serial buffer not use VLA under MSVC
  • Fixed ussues with print/println for int with base on Serial (no related to MSVC)
  • HardwareSetup implementers may be absent (nullptr) and system does not crash (all calls ignored)
  • WiFi classes are not available, so not compiled under MSVC
  • Setup is empty, so not compiled under MSVC

All changes are pretty local, all added MSVC tricks moved to Arduino.h (to keep core api folder less affected)
The port is somewhat restricted, but allows to run simple unittests on the codebase plususe intelisense under vscode

@pschatzmann pschatzmann merged commit 8de846b into pschatzmann:main Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants