diff options
| author | Abel Tim <abel.tim.t@gmail.com> | 2025-03-21 20:47:25 +0100 |
|---|---|---|
| committer | Abel Tim <abel.tim.t@gmail.com> | 2025-03-21 20:47:25 +0100 |
| commit | 5439a5f51122176e995b299100586d204bb7a0a0 (patch) | |
| tree | 447df8c1a22066f01a49792ecd1f5b8b90f2b8d8 /CODE/debug/IR/IR_sens | |
| parent | 3201e4b92e5d13a598af98efb1bcadecefcd3508 (diff) | |
| download | robotica-5439a5f51122176e995b299100586d204bb7a0a0.tar.gz robotica-5439a5f51122176e995b299100586d204bb7a0a0.zip | |
fix serial
Diffstat (limited to 'CODE/debug/IR/IR_sens')
| -rw-r--r-- | CODE/debug/IR/IR_sens/IR_sens.ino (renamed from CODE/debug/IR/IR_sens/IR_sens1.ino) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CODE/debug/IR/IR_sens/IR_sens1.ino b/CODE/debug/IR/IR_sens/IR_sens.ino index df4a5fc..85089d4 100644 --- a/CODE/debug/IR/IR_sens/IR_sens1.ino +++ b/CODE/debug/IR/IR_sens/IR_sens.ino @@ -94,7 +94,7 @@ void loop() { Serial.print(", ir 7 changes: "); Serial.print(IRcount7); Serial.print(", ir 8 changes: "); - Serial.print(IRcount8); + Serial.println(IRcount8); Serial1.print("ir 1 changes: "); Serial1.print(IRcount1); @@ -113,7 +113,7 @@ void loop() { Serial1.print(", ir 8 changes: "); Serial1.print(IRcount8); - volatile long IRcounts[] = {IRcount1, IRcount2, IRcount3, IRcount4, IRcount5, IRcount6, IRcount7, IRcount8}; + volatile long IRcounts[] = {IRcount1, IRcount2, IRcount3, IRcount4, IRcount5, IRcount6, IRcount7, IRcount8}; long maxCount = IRcounts[0]; int highessensor = 1; for (int i = 0; i < 7; ++i) { |
