Fix Linux cable detection code
This commit is contained in:
parent
738535ecaa
commit
cfe4ab8078
1 changed files with 1 additions and 1 deletions
|
|
@ -528,7 +528,7 @@ inline uint8_t *ethsock_get_hwaddr(struct ethsock *sock)
|
|||
bool ethsock_is_unplugged(struct ethsock *sock)
|
||||
{
|
||||
#if defined(NMRPFLASH_LINUX)
|
||||
return intf_sys_read(sock->intf, "carrier", false);
|
||||
return !intf_sys_read(sock->intf, "carrier", true);
|
||||
#elif defined(NMRPFLASH_WINDOWS)
|
||||
MIB_IF_ROW2 row;
|
||||
DWORD err;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue