mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-02 16:14:19 +01:00
Use float instead of double to reduce the size of JsonVariant (issue #134)
This commit is contained in:
20
include/ArduinoJson/Internals/JsonFloat.hpp
Normal file
20
include/ArduinoJson/Internals/JsonFloat.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
// Copyright Benoit Blanchon 2014-2015
|
||||
// MIT License
|
||||
//
|
||||
// Arduino JSON library
|
||||
// https://github.com/bblanchon/ArduinoJson
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace ArduinoJson {
|
||||
namespace Internals {
|
||||
|
||||
#ifdef ARDUINO
|
||||
// On embedded platform, we with use float instead of double to keep JsonVariant
|
||||
// small (issue #134)
|
||||
typedef float JsonFloat;
|
||||
#else
|
||||
typedef double JsonFloat;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user