Skip to content

Commit 5bc0f5c

Browse files
Small fixes
1 parent fac5cdb commit 5bc0f5c

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

general/include/lan8670.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ int32_t LAN8670_PLCA_Set_Node_Id(lan8670_t *lan, uint8_t id);
164164
* @param lan Pointer to the lan8670_t instance.
165165
* @param link_up Pointer to a boolean variable to store the link state (true if link is up, false if down).
166166
* @return 0 on success, or a non-zero error code.
167+
* @note For the LAN8670, this ALWAYS reads '1'. This function was mainly implemented for consistency with the STM32 HAL ethernet stuff.
167168
*/
168169
int32_t LAN8670_Get_Link_State(lan8670_t *lan, bool *link_up);
169170

general/src/lan8670.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,8 @@ int32_t LAN8670_Init(lan8670_t *lan)
419419
lan->DevAddr = buffer;
420420

421421
lan->debug = false; // Default to no debugging.
422+
423+
return 0;
422424
}
423425

424426
int32_t LAN8670_RegisterBusIO(lan8670_t *lan, lan8670_IOCtx_t *ioctx)

0 commit comments

Comments
 (0)