Change to wifi AP mode. SSID "GR-PEACH_1", PSK "12345"
Dependencies: DhcpServer EthernetInterface FATFileSystem GR-PEACH_WlanBP3595AP GR-PEACH_video GraphicsFramework HttpServer_snapshot R_BSP mbed-rpc mbed-rtos mbed
Fork of GR-Boards_WebCamera by
Revision 16:b5469a6226c7, committed 2016-06-02
- Comitter:
- dkato
- Date:
- Thu Jun 02 05:39:35 2016 +0000
- Parent:
- 15:eac4c3711aab
- Child:
- 17:493d36f1febf
- Commit message:
- Fix TerminalWrite.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jun 01 07:35:41 2016 +0000
+++ b/main.cpp Thu Jun 02 05:39:35 2016 +0000
@@ -294,8 +294,15 @@
}
static void TerminalWrite(Arguments* arg, Reply* r) {
- printf("touch count=%s, %s\n", arg->argv[0], arg->argv[1]);
- r->putData<const char*>("ok");
+ if ((arg != NULL) && (r != NULL)) {
+ for (int i = 0; i < arg->argc; i++) {
+ if (arg->argv[i] != NULL) {
+ printf("%s", arg->argv[i]);
+ }
+ }
+ printf("\n");
+ r->putData<const char*>("ok");
+ }
}
static void mount_romramfs(void) {
