From 5cb62294240f76261edf8de58db157c9387e218c Mon Sep 17 00:00:00 2001
From: Malaurie Bernard <mbernard@kinouby>
Date: Wed, 23 Aug 2023 16:01:06 +0200
Subject: [PATCH] add space in json files

---
 syringe.cpp     | 2 +-
 syringe.h       | 4 ++--
 syringefilled.h | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/syringe.cpp b/syringe.cpp
index 049fe44..72fc2a0 100644
--- a/syringe.cpp
+++ b/syringe.cpp
@@ -51,7 +51,7 @@ float Syringe :: get_internal_diameter_mm(String name)
 {
     return syringe_json[name]["internal_diameter_mm"].as<float>();
 }
-const StaticJsonDocument<200>& Syringe :: get_syringe_database()
+const StaticJsonDocument<400>& Syringe :: get_syringe_database()
 {
     return syringe_json;
 }
diff --git a/syringe.h b/syringe.h
index 16ae211..42a8af6 100644
--- a/syringe.h
+++ b/syringe.h
@@ -22,7 +22,7 @@ class Syringe
   float _internal_diameter_mm;
 
   //JSON DOCUMENT
-  StaticJsonDocument<200> syringe_json;  //200 = RAM allocated to this document
+  StaticJsonDocument<400> syringe_json;  //400 = RAM allocated to this document
 
   public :
   
@@ -39,7 +39,7 @@ class Syringe
   float get_total_volume_mL(String name);
   float get_internal_diameter_mm(String name);
 
-  const StaticJsonDocument<200>& get_syringe_database();
+  const StaticJsonDocument<400>& get_syringe_database();
 
   const JsonObject get_syringe_database_object();
 
diff --git a/syringefilled.h b/syringefilled.h
index dc86567..06da047 100644
--- a/syringefilled.h
+++ b/syringefilled.h
@@ -46,7 +46,7 @@ class SyringeFilled : public Motor
     bool _emergency;
 
     //JSON DOCUMENT
-    StaticJsonDocument<300> syringe_filled_json;  //200 = RAM allocated to this document
+    StaticJsonDocument<400> syringe_filled_json;  //400 = RAM allocated to this document
 
 
     public :
-- 
GitLab