Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 922ef56

Browse filesBrowse files
ci(pre-commit): Apply automatic fixes
1 parent 6dda96a commit 922ef56
Copy full SHA for 922ef56

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎libraries/Ethernet/src/ETH.cpp

Copy file name to clipboardExpand all lines: libraries/Ethernet/src/ETH.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ bool ETHClass::setFullDuplex(bool on) {
10141014
if (_eth_handle == NULL) {
10151015
return false;
10161016
}
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;
10181018
esp_err_t err = esp_eth_ioctl(_eth_handle, ETH_CMD_S_DUPLEX_MODE, &link_duplex);
10191019
if (err != ESP_OK) {
10201020
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) {
10641064
if (_eth_handle == NULL) {
10651065
return false;
10661066
}
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;
10681068
esp_err_t err = esp_eth_ioctl(_eth_handle, ETH_CMD_S_SPEED, &link_speed);
10691069
if (err != ESP_OK) {
10701070
log_e("Failed to set link speed: 0x%x: %s", err, esp_err_to_name(err));

‎libraries/Ethernet/src/ETH.h

Copy file name to clipboardExpand all lines: libraries/Ethernet/src/ETH.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ class ETHClass : public NetworkInterface {
193193
// ETH Handle APIs
194194
bool fullDuplex() const;
195195
bool setFullDuplex(bool on);
196-
196+
197197
uint16_t linkSpeed() const;
198-
bool setLinkSpeed(uint16_t speed);//10 or 100
198+
bool setLinkSpeed(uint16_t speed); //10 or 100
199199

200200
bool autoNegotiation() const;
201201
bool setAutoNegotiation(bool on);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.