shellViewer が動作するように調整
@@ -15,6 +15,7 @@ | ||
15 | 15 | #include <termios.h> |
16 | 16 | #include <fcntl.h> |
17 | 17 | #include <errno.h> |
18 | +#include <cstring> | |
18 | 19 | |
19 | 20 | using namespace beego; |
20 | 21 |
@@ -1,6 +1,9 @@ | ||
1 | 1 | #ifndef CONNECTION_DEVICE_SEARCH_H |
2 | 2 | #define CONNECTION_DEVICE_SEARCH_H |
3 | 3 | |
4 | +#include <string> | |
5 | + | |
6 | + | |
4 | 7 | /*! |
5 | 8 | \page connection_device_search_page シリアル ID 指定のデバイス探索 |
6 | 9 |
@@ -20,7 +20,8 @@ | ||
20 | 20 | using namespace beego; |
21 | 21 | |
22 | 22 | |
23 | -static const char* DefaultDevice = "/dev/usb/ttyUSB0"; | |
23 | +//static const char* DefaultDevice = "/dev/usb/ttyUSB0"; | |
24 | +static const char* DefaultDevice = "/dev/ttyACM0"; | |
24 | 25 | static const long DefaultBaudrate = 115200; |
25 | 26 | static const char* LogFileName = "miniterm_log.txt"; |
26 | 27 |
@@ -19,7 +19,8 @@ | ||
19 | 19 | /*! |
20 | 20 | \brief 「伺か」のサーフェス管理 |
21 | 21 | */ |
22 | - class UkagakaShellHandler { | |
22 | + class UkagakaShellHandler | |
23 | + { | |
23 | 24 | UkagakaShellHandler(const UkagakaShellHandler& rhs); |
24 | 25 | UkagakaShellHandler& operator = (const UkagakaShellHandler& rhs); |
25 | 26 |
@@ -9,6 +9,7 @@ | ||
9 | 9 | |
10 | 10 | #include "StandardInput.h" |
11 | 11 | #include <sys/poll.h> |
12 | +#include <unistd.h> | |
12 | 13 | |
13 | 14 | using namespace beego; |
14 | 15 |
@@ -45,4 +45,6 @@ | ||
45 | 45 | if (! createDirectory(next_create.c_str())) { |
46 | 46 | return false; |
47 | 47 | } |
48 | + | |
49 | + return true; | |
48 | 50 | } |