File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1014,7 +1014,7 @@ bool ETHClass::setFullDuplex(bool on) {
1014
1014
if (_eth_handle == NULL ) {
1015
1015
return false ;
1016
1016
}
1017
- eth_duplex_t link_duplex = on? ETH_DUPLEX_FULL: ETH_DUPLEX_HALF;
1017
+ eth_duplex_t link_duplex = on ? ETH_DUPLEX_FULL : ETH_DUPLEX_HALF;
1018
1018
esp_err_t err = esp_eth_ioctl (_eth_handle, ETH_CMD_S_DUPLEX_MODE, &link_duplex);
1019
1019
if (err != ESP_OK) {
1020
1020
log_e (" Failed to set duplex mode: 0x%x: %s" , err, esp_err_to_name (err));
@@ -1064,7 +1064,7 @@ bool ETHClass::setLinkSpeed(uint16_t speed) {
1064
1064
if (_eth_handle == NULL ) {
1065
1065
return false ;
1066
1066
}
1067
- eth_speed_t link_speed = (speed == 10 )? ETH_SPEED_10M: ETH_SPEED_100M;
1067
+ eth_speed_t link_speed = (speed == 10 ) ? ETH_SPEED_10M : ETH_SPEED_100M;
1068
1068
esp_err_t err = esp_eth_ioctl (_eth_handle, ETH_CMD_S_SPEED, &link_speed);
1069
1069
if (err != ESP_OK) {
1070
1070
log_e (" Failed to set link speed: 0x%x: %s" , err, esp_err_to_name (err));
Original file line number Diff line number Diff line change @@ -193,9 +193,9 @@ class ETHClass : public NetworkInterface {
193
193
// ETH Handle APIs
194
194
bool fullDuplex () const ;
195
195
bool setFullDuplex (bool on);
196
-
196
+
197
197
uint16_t linkSpeed () const ;
198
- bool setLinkSpeed (uint16_t speed);// 10 or 100
198
+ bool setLinkSpeed (uint16_t speed); // 10 or 100
199
199
200
200
bool autoNegotiation () const ;
201
201
bool setAutoNegotiation (bool on);
You can’t perform that action at this time.
0 commit comments