Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
neOCampus-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
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
GIS-neOCampus
neOSensor
neOCampus-arduino
Commits
f12221b8
Commit
f12221b8
authored
3 years ago
by
francois
Browse files
Options
Downloads
Patches
Plain Diff
workaround for Serial2 error when compiling for esp8266
parent
dd25b333
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
neosensor/libraries/neocampus_drivers/pm_serial.cpp
+7
-0
7 additions, 0 deletions
neosensor/libraries/neocampus_drivers/pm_serial.cpp
with
7 additions
and
0 deletions
neosensor/libraries/neocampus_drivers/pm_serial.cpp
+
7
−
0
View file @
f12221b8
...
@@ -699,8 +699,15 @@ boolean pm_serial::_init( void ) {
...
@@ -699,8 +699,15 @@ boolean pm_serial::_init( void ) {
log_error
(
F
(
"
\n
[pm_serial] inappropriate serial link number "
));
log_error
(
_link
);
log_flush
();
log_error
(
F
(
"
\n
[pm_serial] inappropriate serial link number "
));
log_error
(
_link
);
log_flush
();
return
false
;
return
false
;
}
}
#warning "esp8266 hack: Serial2 is not known ... correct me!"
#ifndef ESP8266
Serial2
.
begin
(
_link_speed
);
Serial2
.
begin
(
_link_speed
);
_stream
=
&
Serial2
;
// TODO pointer to stream according to link number specified ... maybe later ;)
_stream
=
&
Serial2
;
// TODO pointer to stream according to link number specified ... maybe later ;)
#else
return
false
;
#endif
/* ESP8266 */
if
(
!
_stream
)
return
false
;
if
(
!
_stream
)
return
false
;
// switch to passive mode (if any)
// switch to passive mode (if any)
...
...
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