|
@@ -621,9 +621,9 @@ static void wifi_gcode_exec(uint8_t *cmd_line) {
|
621
|
621
|
|
622
|
622
|
if (tmpStr == 0) {
|
623
|
623
|
gCfgItems.fileSysType = FILE_SYS_SD;
|
624
|
|
- send_to_wifi((uint8_t *)"Begin file list\r\n", strlen("Begin file list\r\n"));
|
|
624
|
+ send_to_wifi((uint8_t *)(STR_BEGIN_FILE_LIST "\r\n"), strlen(STR_BEGIN_FILE_LIST "\r\n"));
|
625
|
625
|
get_file_list((char *)"0:/");
|
626
|
|
- send_to_wifi((uint8_t *)"End file list\r\n", strlen("End file list\r\n"));
|
|
626
|
+ send_to_wifi((uint8_t *)(STR_END_FILE_LIST "\r\n"), strlen(STR_END_FILE_LIST "\r\n"));
|
627
|
627
|
SEND_OK_TO_WIFI;
|
628
|
628
|
break;
|
629
|
629
|
}
|
|
@@ -634,7 +634,7 @@ static void wifi_gcode_exec(uint8_t *cmd_line) {
|
634
|
634
|
char *path = (char *)tempBuf;
|
635
|
635
|
|
636
|
636
|
if (strlen((char *)&tmpStr[index]) < 80) {
|
637
|
|
- send_to_wifi((uint8_t *)"Begin file list\r\n", strlen("Begin file list\r\n"));
|
|
637
|
+ send_to_wifi((uint8_t *)(STR_BEGIN_FILE_LIST "\r\n"), strlen(STR_BEGIN_FILE_LIST "\r\n"));
|
638
|
638
|
|
639
|
639
|
if (strncmp((char *)&tmpStr[index], "1:", 2) == 0)
|
640
|
640
|
gCfgItems.fileSysType = FILE_SYS_SD;
|
|
@@ -643,7 +643,7 @@ static void wifi_gcode_exec(uint8_t *cmd_line) {
|
643
|
643
|
|
644
|
644
|
strcpy((char *)path, (char *)&tmpStr[index]);
|
645
|
645
|
get_file_list(path);
|
646
|
|
- send_to_wifi((uint8_t *)"End file list\r\n", strlen("End file list\r\n"));
|
|
646
|
+ send_to_wifi((uint8_t *)(STR_END_FILE_LIST "\r\n"), strlen(STR_END_FILE_LIST "\r\n"));
|
647
|
647
|
}
|
648
|
648
|
SEND_OK_TO_WIFI;
|
649
|
649
|
}
|