- Add platformio.ini for ESP32 DevKit (Arduino framework, espressif32 6.10.0) - Vendor ArduinoJson, MPU6050_tockn, SCServo, Simple_FOC, and WebSockets so a fresh clone builds without downloading dependencies - Add .gitignore rules for PlatformIO/IDE build artifacts - Add controller PCB Gerber and drill files
20 lines
432 B
C++
20 lines
432 B
C++
// ArduinoJson - https://arduinojson.org
|
|
// Copyright © 2014-2023, Benoit BLANCHON
|
|
// MIT License
|
|
|
|
#define ARDUINO
|
|
#define memcpy_P(dest, src, n) memcpy((dest), (src), (n))
|
|
|
|
#include "progmem_emulation.hpp"
|
|
|
|
#include <ArduinoJson.h>
|
|
|
|
#include <catch.hpp>
|
|
|
|
TEST_CASE("Issue1707") {
|
|
StaticJsonDocument<128> doc;
|
|
|
|
DeserializationError err = deserializeJson(doc, F("{\"hello\":12}"));
|
|
REQUIRE(err == DeserializationError::Ok);
|
|
}
|