Fixed Closure compiler warning.
WARNING - actual parameter 2 of C1PSerialPort.prototype.loadFile does not match formal parameter
This commit is contained in:
parent
e9e7633fa7
commit
b1fa1460d2
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ C1PSerialPort.prototype.setBinding = function(c, t, s, e)
|
|||
var reader = new FileReader();
|
||||
reader.onload = function () {
|
||||
// serial.println("uploading " + file.name + "...");
|
||||
serial.loadFile(file.name, reader.result, 0);
|
||||
serial.loadFile(file.name, reader.result.toString(), 0);
|
||||
};
|
||||
reader.readAsText(file);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue