reformat cultivar_sensor.ino with 2-space indent and add CULTIVAR_ENV_WIRE define for platform-specific Wire selection
This commit is contained in:
1 parent
89173129d9
commit
0f2dac32f1
3 files changed
+56
-57
No files matched your search
@@ -28,10 +28,7 @@ CultivarEnv env;
|
||||
static char jsonBuf[JSON_BUF_SIZE];
|
||||
|
||||
void setup() {
|
||||
if (!Bridge.begin()) {
|
||||
Monitor.println("[ERROR] Bridge init failed");
|
||||
while (true) {}
|
||||
}
|
||||
Bridge.begin();
|
||||
|
||||
Monitor.println("\n[cultivar] ENV bridge starting...");
|
||||
|
||||
@@ -41,7 +38,7 @@ void setup() {
|
||||
Monitor.println("[cultivar] TCP bridge ready on :5678");
|
||||
|
||||
// SDA=0, SCL=0 on Zephyr = device tree configured pins (correct)
|
||||
if (!env.begin(Wire, SDA, SCL)) {
|
||||
if (!env.begin(Wire1, SDA, SCL)) {
|
||||
Monitor.println("[WARN] BME690 init failed — check wiring");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user