Skip to content

Commit 46b79df

Browse files
Fixed backslash error
Fixed an error compiling on Linux because of wrong slashes.
1 parent 94618c7 commit 46b79df

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

Changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Commander changelog
22
(Changelog started at 1.2.3)
33

4+
Commander 3.1.1
5+
6+
Corrected some keywords.
7+
Fixed backslash error in #include.
8+
49
Commander 3.1.0
510

611
Changed streamData to private method.

examples/PrefabFileExplorer/PrefabFileExplorer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* The prefab includes a file write command that lets you stream text files to a file on the SD card or open a file and sent typed text to the file.
88
* When this command is activated the command processor will stop working until the ASCII value 4 is received.
99
* This can be sent from a terminal application such as coolTerm by pressing CONTROL+D
10-
* The Arduino Serial terminal does NOT allow you to send this character and so you cannot rerminate the file download when using the Arduino Serial terminal.
10+
* The Arduino Serial terminal does NOT allow you to send this character and so you cannot terminate the file download when using the Arduino Serial terminal.
1111
*/
1212
#include <Commander.h>
1313
#include <PrefabFileNavigator.h>

keywords.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ getPayloadString KEYWORD2
2727
feedString KEYWORD2
2828
loadString KEYWORD2
2929
endLine KEYWORD2
30-
startStream KEYWORD2
31-
stopStream KEYWORD2
30+
startStreaming KEYWORD2
31+
stopStreaming KEYWORD2
3232
setStream KEYWORD2
3333
isStreaming KEYWORD2
3434
transfer KEYWORD2

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Commander
2-
version=3.1.0
2+
version=3.1.1
33
author=Bill Bigge
44
maintainer=Bill Bigge <[email protected]>
55
sentence=Command line library for Arduino.

src/Commander.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#include <Arduino.h>
77
#include <string.h>
8-
#include "utilities\CommandHelpTags.h"
8+
#include "utilities/CommandHelpTags.h"
99

1010
class Commander;
1111

src/prefabs/SDCards/PrefabFileNavigator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ bool writeToFileHandler(Commander &Cmdr){
154154
file1 = SD.open(Cmdr.getPayloadString().c_str(), O_WRITE | O_CREAT);
155155
Cmdr.print(F("Created file: "));
156156
Cmdr.println(Cmdr.getPayloadString());
157-
Cmdr.startStream();
157+
Cmdr.startStreaming();
158158
}else Cmdr.print(F("Error - Filename required"));
159159
return 0;
160160
}
@@ -176,7 +176,7 @@ bool streamToFileHandler(Commander &Cmdr){
176176
if(!file1.isOpen()){
177177
//file is not open so tell the streamer to stop
178178
Cmdr.println("Error: Streaming to closed file");
179-
Cmdr.stopStream();
179+
Cmdr.stopStreaming();
180180
return 0;
181181
}
182182
if(Cmdr.bufferString.length() > 0){

0 commit comments

Comments
 (0)