Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
goelzhae
HandWashingDetectionSystem
Commits
23f90131
Commit
23f90131
authored
Nov 05, 2021
by
Simon Gölzhäuser
Browse files
Small code adjustments
parent
27c831f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
soap_dispenser_video_recorder/soap_dispenser_video_recorder.ino
View file @
23f90131
...
...
@@ -633,9 +633,11 @@ void initDistanceSensor() {
* wifi_pass: WiFi password (optional)
* bearer: Server upload bearer token (optional)
*/
void
readConfigFile
()
{
void
readConfigFile
s
()
{
g_bWifiCredentialsSet
=
true
;
#ifdef FILEUPLOAD
g_bBearerSet
=
true
;
#endif
#ifdef SERIALPRINTS
Serial
.
println
(
"
\n
Data from config file:"
);
...
...
@@ -1532,11 +1534,13 @@ void cameraLoop (void* pvParameter) {
delay
(
500
);
while
(
true
)
{
// --- Case 1: Not
hing to do
---
// --- Case 1: Not
recording, upload files
---
if
((
g_u16AviFrameCnt
==
0
)
&&
!
g_bShouldRecord
)
{
#ifdef FILEUPLOAD
if
(
getNextFileForUpload
(
fileName
))
{
handleFileUpload
(
fileName
);
if
(
g_bWifiCredentialsSet
&&
g_bBearerSet
)
{
if
(
getNextFileForUpload
(
fileName
))
{
handleFileUpload
(
fileName
);
}
}
#endif
...
...
@@ -1834,8 +1838,8 @@ void setup() {
#endif
g_fLog
.
printf
(
"Reboot reason: %s
\n
"
,
resetReason
);
// Read configfile
readConfigFile
();
// Read config
file
s
readConfigFile
s
();
// Camera init
initCamera
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment