Skip to content

Commit 4c9181c

Browse files
committed
Arduino - Replaced HUGE_VALF with INFINITY to avoid compile errors. Corrected typo in documentation.
1 parent 4288a65 commit 4c9181c

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed
Binary file not shown.

MethodSCRIPTExample_Arduino/MethodSCRIPTComm/MSComm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ RetCode ReceivePackage(MSComm* msComm, MeasureData* retData)
108108

109109
void ParseResponse(char *responsePackageLine, MeasureData* retData)
110110
{
111-
retData->zreal = HUGE_VALF; //Impedance data NAN as default
112-
retData->zimag = HUGE_VALF; //Impedance data NAN as default
111+
retData->zreal = INFINITY; //Impedance data NAN as default
112+
retData->zimag = INFINITY; //Impedance data NAN as default
113113
char *P = strchr(responsePackageLine, 'P'); //Identifies the beginning of the response package
114114
char *packageLine = P+1;
115115
const char delimiters[] = ";\n"; //a space (" ") is used as prefix token thus part of parameter

MethodSCRIPTExample_Arduino/MethodSCRIPTExample/MethodSCRIPTExample.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ void loop()
267267
Serial.println("\nReceiving measurement response:");
268268
Serial.print("\n");
269269
Serial.print(++_nDataPoints);
270-
if (data.zreal != HUGE_VALF)
270+
if (data.zreal != INFINITY)
271271
{
272272
Serial.print("\tFrequency(Hz): ");
273273
Serial.print(sci(data.frequency, 3));
-281 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)