Fix wrong bitwise OR position
@@ -349,9 +349,9 @@ espi_parse_ipd(const char* str) {
*/
uint8_t
espi_parse_at_sdk_version(const char* str, esp_sw_version_t* version_out) {
- version_out->major |= ((uint8_t)espi_parse_number(&str)); str++;
- version_out->minor |= ((uint8_t)espi_parse_number(&str)); str++;
- version_out->patch |= ((uint8_t)espi_parse_number(&str));
+ version_out->major = ((uint8_t)espi_parse_number(&str)); str++;
+ version_out->minor = ((uint8_t)espi_parse_number(&str)); str++;
+ version_out->patch = ((uint8_t)espi_parse_number(&str));
return 1;
}
