Skip to content

Instantly share code, notes, and snippets.

@guberti
Created July 5, 2021 21:03
Show Gist options
  • Save guberti/fcef3acdb3894533b42c64becc46b478 to your computer and use it in GitHub Desktop.
Save guberti/fcef3acdb3894533b42c64becc46b478 to your computer and use it in GitHub Desktop.
A simple Arduino program for the Spresense to reproduce a bug with inttypes.h
#include "importer.c"
void setup() {}
void loop() {}
#include <inttypes.h>
@guberti
Copy link
Author

guberti commented Jul 5, 2021

It's important to note that for the bug to appear, we must #include <inttypes.h> in a file other than the .ino file, as the Arduino preprocessor will import wchar_t for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment