[chronojump] ReadArduino waitResponse a bit more informative
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] ReadArduino waitResponse a bit more informative
- Date: Tue, 28 Sep 2021 14:01:20 +0000 (UTC)
commit 14e98108bfe3a86da34a836b19b3fcaa76386837
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Sep 28 15:59:53 2021 +0200
ReadArduino waitResponse a bit more informative
src/execute/arduinoCapture.cs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/execute/arduinoCapture.cs b/src/execute/arduinoCapture.cs
index 34ec3c04d..c5d994469 100644
--- a/src/execute/arduinoCapture.cs
+++ b/src/execute/arduinoCapture.cs
@@ -101,7 +101,7 @@ public abstract class ArduinoCapture
return true;
}
- protected void waitResponse (string response)
+ protected void waitResponse (string expected)
{
string str = "";
do {
@@ -111,12 +111,12 @@ public abstract class ArduinoCapture
try {
str = port.ReadLine();
} catch {
- LogB.Information(string.Format("Catched waiting: |{0}|", response));
+ LogB.Information(string.Format("Catched waiting: |{0}|", expected));
}
+ //LogB.Information(string.Format("waiting \"{0}\", received: {1}", expected,
str));
}
- //LogB.Information("waiting \"Capture ended\" string: " + str);
}
- while(! str.Contains(response));
+ while(! str.Contains(expected));
LogB.Information("waitResponse success: " + str);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]