Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pousseseringue-arduino
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FabLAAS
PousseSeringue
pousseseringue-arduino
Commits
f131953b
Commit
f131953b
authored
1 year ago
by
Malaurie Bernard
Browse files
Options
Downloads
Patches
Plain Diff
Add serial messages to view JSon file sizes
parent
aa181350
No related branches found
No related tags found
1 merge request
!17
Malaurie's work on UI + CLI interface + AccelStepper interface
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
syringe.cpp
+4
-2
4 additions, 2 deletions
syringe.cpp
syringefilled.cpp
+4
-2
4 additions, 2 deletions
syringefilled.cpp
with
8 additions
and
4 deletions
syringe.cpp
+
4
−
2
View file @
f131953b
...
...
@@ -98,8 +98,10 @@ void Syringe :: write_Json ()
{
InterruptLock
lock
;
//useful thanks to its constructor (so a is not visible in the code)
File
f
=
filesystem
->
open
(
"syringe_json"
,
"w"
);
//Creation du fichier
serializeJson
(
syringe_json
,
f
);
//remettre f a la plce de json
size_t
a
=
serializeJson
(
syringe_json
,
f
);
//remettre f a la plce de json
Serial
.
println
(
"Taille de syringe_json"
);
Serial
.
println
(
a
);
f
.
close
();
}
//useful in setup of pousse-seringue.cpp(to check at the begining what has already been saved) and web.cpp via a button to recover data
...
...
This diff is collapsed.
Click to expand it.
syringefilled.cpp
+
4
−
2
View file @
f131953b
...
...
@@ -336,8 +336,10 @@ void SyringeFilled :: write_Json ()
{
InterruptLock
lock
;
//useful thanks to its constructor (so a is not visible in the code)
File
f
=
filesystem
->
open
(
"syringe_filled_json"
,
"w"
);
//Creation du fichier
serializeJson
(
syringe_filled_json
,
f
);
size_t
a
=
serializeJson
(
syringe_filled_json
,
f
);
Serial
.
println
(
"Taille de syringe_filled_json"
);
Serial
.
println
(
a
);
f
.
close
();
}
//useful in setup of pousse-seringue.cpp(to check at the begining what has already been saved) and web.cpp via a button to recover data
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment