mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 13:14:32 +02:00
Remove CR line ends.
This commit is contained in:
@@ -315,7 +315,9 @@ esp_err_t WL_Flash::updateVersion()
|
|||||||
esp_err_t result = ESP_OK;
|
esp_err_t result = ESP_OK;
|
||||||
|
|
||||||
result = this->updateV1_V2();
|
result = this->updateV1_V2();
|
||||||
if (result == ESP_OK) return result;
|
if (result == ESP_OK) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
// check next version
|
// check next version
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -415,7 +417,9 @@ bool WL_Flash::OkBuffSet(int n)
|
|||||||
for (int i = 0 ; i < 4 ; i++) {
|
for (int i = 0 ; i < 4 ; i++) {
|
||||||
uint32_t data = this->state.device_id + n * 4 + i;
|
uint32_t data = this->state.device_id + n * 4 + i;
|
||||||
uint32_t crc = crc32::crc32_le(WL_CFG_CRC_CONST, (uint8_t *)&data, sizeof(uint32_t));
|
uint32_t crc = crc32::crc32_le(WL_CFG_CRC_CONST, (uint8_t *)&data, sizeof(uint32_t));
|
||||||
if (crc != data_buff[i]) result = false;
|
if (crc != data_buff[i]) {
|
||||||
|
result = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user