mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 01:40:38 +08:00
code formating
This commit is contained in:
parent
5d018cfbf6
commit
a27045080f
@ -101,7 +101,7 @@ bool Commands::ESP181(const char* cmd_params, level_authenticate_type auth_type,
|
||||
response = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
@ -86,11 +86,9 @@ uint8_t ESP_SD::getState(bool refresh)
|
||||
if (!refresh) {
|
||||
return _state; //to avoid refresh=true + busy to reset SD and waste time
|
||||
}
|
||||
//SD is idle or not detected, let see if still the case
|
||||
|
||||
//SD is idle or not detected, let see if still the case
|
||||
_state = ESP_SDCARD_NOT_PRESENT;
|
||||
//using default value for speed ? should be parameter
|
||||
//refresh content if card was removed
|
||||
//refresh content if card was removed
|
||||
if (SD.begin((ESP_SD_CS_PIN == -1)?SS:ESP_SD_CS_PIN, SD_SCK_HZ(F_CPU/_spi_speed_divider))) {
|
||||
if (SD.card()->cardSize() > 0 ) {
|
||||
_state = ESP_SDCARD_IDLE;
|
||||
|
@ -85,11 +85,9 @@ uint8_t ESP_SD::getState(bool refresh)
|
||||
if (!refresh) {
|
||||
return _state; //to avoid refresh=true + busy to reset SD and waste time
|
||||
}
|
||||
//SD is idle or not detected, let see if still the case
|
||||
|
||||
//SD is idle or not detected, let see if still the case
|
||||
_state = ESP_SDCARD_NOT_PRESENT;
|
||||
//using default value for speed ? should be parameter
|
||||
//refresh content if card was removed
|
||||
//refresh content if card was removed
|
||||
if (SD.begin((ESP_SD_CS_PIN == -1)?SS:ESP_SD_CS_PIN, SD_SCK_MHZ(FREQMZ/_spi_speed_divider))) {
|
||||
if (SD.card()->cardSize() > 0 ) {
|
||||
_state = ESP_SDCARD_IDLE;
|
||||
|
@ -55,7 +55,7 @@ void HTTP_Server::handleSDFileList ()
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//get current path
|
||||
if (_webserver->hasArg ("path") ) {
|
||||
path += _webserver->arg ("path") ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user