Remove CR line ends.

This commit is contained in:
Dmitry
2018-07-27 09:54:23 +03:00
parent e98a49a691
commit 2281f6318a

View File

@@ -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;
} }