Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
b52c675f
Commit
b52c675f
authored
Mar 23, 2022
by
Eric Duminil
Browse files
ESP8266 was expected to be broken
but not that broken
parent
4ff49e0c
Pipeline
#6038
failed with stage
in 1 minute and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
b52c675f
...
...
@@ -18,11 +18,12 @@ namespace config {
}
#if defined(ESP8266)
// ???
// ???
#endif
#if defined(ESP32)
// For ESP32 : RX on GPIO17, TX on GPIO16
# define S8_UART_PORT 2
#endif
namespace
sensor
{
HardwareSerial
S8_serial
(
S8_UART_PORT
);
...
...
@@ -70,7 +71,6 @@ namespace sensor {
Serial
.
println
(
F
(
"Sensor : Senseair S8"
));
S8_serial
.
begin
(
S8_BAUDRATE
);
sensor_S8
=
new
S8_UART
(
S8_serial
);
#endif
Serial
.
println
();
// Check if S8 is available
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment