mirror of
https://github.com/nqrduck/ATM.git
synced 2024-12-01 22:33:13 +00:00
Fixed bug which lead to negative voltages.
This commit is contained in:
parent
723c36fca8
commit
3fda6ff2fb
1 changed files with 6 additions and 0 deletions
|
@ -77,6 +77,12 @@ void VoltageSweep::printResult()
|
||||||
// Print the results which are then read by the autotm module
|
// Print the results which are then read by the autotm module
|
||||||
char identifier = 'v';
|
char identifier = 'v';
|
||||||
char delimiter = 't';
|
char delimiter = 't';
|
||||||
|
|
||||||
|
if (tuning_voltage < 0.0 || matching_voltage < 0.0)
|
||||||
|
{
|
||||||
|
tuning_voltage = 0.0;
|
||||||
|
matching_voltage = 0.0;
|
||||||
|
}
|
||||||
String text = String(identifier) + String(matching_voltage) + String(delimiter) + String(tuning_voltage);
|
String text = String(identifier) + String(matching_voltage) + String(delimiter) + String(tuning_voltage);
|
||||||
|
|
||||||
Serial.println(text);
|
Serial.println(text);
|
||||||
|
|
Loading…
Reference in a new issue