From a2343876ceb77f879df3a8d7efbd3d7044aadb4d Mon Sep 17 00:00:00 2001 From: wezzix Date: Sun, 11 Dec 2016 09:00:07 +0100 Subject: [PATCH] Fix compilation error splitLineCSV, missing argument. Write float using Locale.US to ensure consistent export in cultures which use a ',' as decimal separator. --- OpenBCI_GUI/dataFiles.pde | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenBCI_GUI/dataFiles.pde b/OpenBCI_GUI/dataFiles.pde index 8872869..b78d2ed 100644 --- a/OpenBCI_GUI/dataFiles.pde +++ b/OpenBCI_GUI/dataFiles.pde @@ -80,7 +80,7 @@ public class OutputFile_rawtxt { int nVal = values.length; for (int Ival = 0; Ival < nVal; Ival++) { output.print(", "); - output.print(String.format("%.2f", scale_fac * float(values[Ival]))); + output.print(String.format(Locale.US, "%.2f", scale_fac * float(values[Ival]))); } } @@ -139,11 +139,11 @@ class Table_CSV extends Table { setRowCount(row << 1); } if (row == 0 && header) { - setColumnTitles(tsv ? PApplet.split(line, '\t') : splitLineCSV(line)); + setColumnTitles(tsv ? PApplet.split(line, '\t') : splitLineCSV(line, reader)); header = false; } else { - setRow(row, tsv ? PApplet.split(line, '\t') : splitLineCSV(line)); + setRow(row, tsv ? PApplet.split(line, '\t') : splitLineCSV(line, reader)); row++; }