mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-03 22:30:42 +08:00
Fix Default SD value if direct SD enabled
Fix typo in SD type in ESP400
This commit is contained in:
parent
4a64a83bf0
commit
41cb7d1f2f
@ -436,7 +436,7 @@ bool Commands::ESP400(const char* cmd_params, level_authenticate_type auth_type,
|
||||
output->print("\",\"T\":\"B\",\"V\":\"");
|
||||
output->print (Settings_ESP3D::read_byte(ESP_SD_DEVICE_TYPE));
|
||||
//hard coded for readibility but should use ESP_NO_SD / ESP_DIRECT_SD / ESP_SHARED_SD
|
||||
output->print("\",\"H\":\"type\",\"O\":[{\"none\":\"0\"},{\"direct\":\"1\"},{\"dhared\":\"2\"}]}");
|
||||
output->print("\",\"H\":\"type\",\"O\":[{\"none\":\"0\"},{\"direct\":\"1\"},{\"shared\":\"2\"}]}");
|
||||
//SPI SD Divider
|
||||
output->print(",{\"F\":\"device/sd\",\"P\":\"");
|
||||
output->print(ESP_SD_SPEED_DIV);
|
||||
|
@ -105,7 +105,11 @@
|
||||
#define DEFAULT_DIRECT_SD_CHECK 0
|
||||
#define DEFAULT_SD_CHECK_UPDATE_AT_BOOT 1
|
||||
#define DEFAULT_DHT_TYPE NO_DHT_DEVICE
|
||||
#ifdef SD_DEVICE
|
||||
#define DEFAULT_SD_DEVICE_TYPE ESP_DIRECT_SD
|
||||
#else
|
||||
#define DEFAULT_SD_DEVICE_TYPE ESP_NO_SD
|
||||
#endif //SD_DEVICE
|
||||
#define DEFAULT_HTTP_ON 1
|
||||
#define DEFAULT_FTP_ON 1
|
||||
#define DEFAULT_TELNET_ON 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user