8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6224b3 commit 01e83dfCopy full SHA for 01e83df
libraries/Ethernet/src/EthernetClock.cpp
@@ -49,17 +49,14 @@ fsp_err_t EthernetClock::stop() {
49
fsp_err_t err = R_AGT_Stop(&this->TIMER_ETHERNET_ctrl);
50
if (err != FSP_SUCCESS) {
51
return err;
52
- } else {
53
- err = R_AGT_Close(&this->TIMER_ETHERNET_ctrl);
54
- if (err != FSP_SUCCESS) {
55
- return err;
56
57
- err = R_AGT_Disable(&this->TIMER_ETHERNET_ctrl);
58
59
60
- }
61
62
}
+
+ err = R_AGT_Close(&this->TIMER_ETHERNET_ctrl);
+ if (err != FSP_SUCCESS) {
+ return err;
+ }
+ return R_AGT_Disable(&this->TIMER_ETHERNET_ctrl);
63
64
65
#else
0 commit comments