mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-05 09:20:43 +08:00
Update ESP220.cpp
Display default pins real value for SPI Hide state if pin is -1 as meaningless
This commit is contained in:
parent
e1923074f9
commit
daaf254231
@ -62,7 +62,7 @@ bool Commands::ESP220(const char* cmd_params, level_authenticate_type auth_type,
|
||||
} else {
|
||||
line +=": ";
|
||||
}
|
||||
line +=String(ESP_SD_CS_PIN);
|
||||
line +=String(ESP_SD_CS_PIN==-1?SS:ESP_SD_CS_PIN);
|
||||
if (json) {
|
||||
line +="\"}";
|
||||
output->print (line.c_str());
|
||||
@ -79,7 +79,7 @@ bool Commands::ESP220(const char* cmd_params, level_authenticate_type auth_type,
|
||||
} else {
|
||||
line +=": ";
|
||||
}
|
||||
line +=String(ESP_SD_MOSI_PIN);
|
||||
line +=String(ESP_SD_MOSI_PIN==-1?MOSI:ESP_SD_MOSI_PIN);
|
||||
if (json) {
|
||||
line +="\"}";
|
||||
output->print (line.c_str());
|
||||
@ -96,7 +96,7 @@ bool Commands::ESP220(const char* cmd_params, level_authenticate_type auth_type,
|
||||
} else {
|
||||
line +=": ";
|
||||
}
|
||||
line +=String(ESP_SD_MISO_PIN);
|
||||
line +=String(ESP_SD_MISO_PIN==-1?MISO:ESP_SD_MISO_PIN);
|
||||
if (json) {
|
||||
line +="\"}";
|
||||
output->print (line.c_str());
|
||||
@ -113,7 +113,7 @@ bool Commands::ESP220(const char* cmd_params, level_authenticate_type auth_type,
|
||||
} else {
|
||||
line +=": ";
|
||||
}
|
||||
line +=String(ESP_SD_SCK_PIN);
|
||||
line +=String(ESP_SD_SCK_PIN==-1?SCK:ESP_SD_SCK_PIN);
|
||||
if (json) {
|
||||
line +="\"}";
|
||||
output->print (line.c_str());
|
||||
@ -138,6 +138,7 @@ bool Commands::ESP220(const char* cmd_params, level_authenticate_type auth_type,
|
||||
output->printMSGLine(line.c_str());
|
||||
}
|
||||
line="";
|
||||
#if ESP_SD_DETECT_PIN !=-1
|
||||
if (json) {
|
||||
line += "{\"id\":\"";
|
||||
}
|
||||
@ -155,6 +156,7 @@ bool Commands::ESP220(const char* cmd_params, level_authenticate_type auth_type,
|
||||
output->printMSGLine(line.c_str());
|
||||
}
|
||||
line="";
|
||||
#endif //ESP_SD_DETECT_PIN !=-1
|
||||
#if SD_DEVICE_CONNECTION == ESP_SHARED_SD && defined(ESP_FLAG_SHARED_SD_PIN)
|
||||
if (json) {
|
||||
line += "{\"id\":\"";
|
||||
|
Loading…
x
Reference in New Issue
Block a user