Skip to content

Commit

Permalink
Update components/esp_eth/src/esp_eth_mac_w5500.c
Browse files Browse the repository at this point in the history
Co-authored-by: Ondrej Kosta <[email protected]>
  • Loading branch information
reinismu and kostaond authored Jan 17, 2023
1 parent 5110917 commit fa6e995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_eth/src/esp_eth_mac_w5500.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static esp_err_t w5500_verify_id(emac_w5500_t *emac)
ESP_GOTO_ON_ERROR(w5500_read(emac, W5500_REG_VERSIONR, &version, sizeof(version)), err, TAG, "read VERSIONR failed");
// W5500 doesn't have chip ID, we check the version number instead

ESP_GOTO_ON_FALSE(version == W5500_CHIP_VERSION, ESP_ERR_INVALID_VERSION, err, TAG, "returned invalid VERSIONR. Should return 0x4");
ESP_GOTO_ON_FALSE(version == W5500_CHIP_VERSION, ESP_ERR_INVALID_VERSION, err, TAG, "invalid chip version, expected 0x%x, actual 0x%x", W5500_CHIP_VERSION, version);

err:
return ret;
Expand Down

0 comments on commit fa6e995

Please sign in to comment.