run auto-formatter
This commit is contained in:
@ -12,9 +12,11 @@
|
||||
#include "lwip/timeouts.h"
|
||||
#include "networking.h"
|
||||
|
||||
UdpTcLwIpPollingTask::UdpTcLwIpPollingTask(object_id_t objectId, object_id_t bridgeId,
|
||||
struct netif* gnetif)
|
||||
: SystemObject(objectId), periodicHandleCounter(0), bridgeId(bridgeId), gnetif(gnetif) {}
|
||||
UdpTcLwIpPollingTask::UdpTcLwIpPollingTask(object_id_t objectId,
|
||||
object_id_t bridgeId,
|
||||
struct netif *gnetif)
|
||||
: SystemObject(objectId), periodicHandleCounter(0), bridgeId(bridgeId),
|
||||
gnetif(gnetif) {}
|
||||
|
||||
UdpTcLwIpPollingTask::~UdpTcLwIpPollingTask() {}
|
||||
|
||||
@ -47,7 +49,8 @@ ReturnValue_t UdpTcLwIpPollingTask::performOperation(uint8_t operationCode) {
|
||||
/* In case ethernet cable is disconnected */
|
||||
if (not networking::getEthCableConnected() and udpBridge->comLinkUp()) {
|
||||
udpBridge->physicalConnectStatusChange(false);
|
||||
} else if (networking::getEthCableConnected() and not udpBridge->comLinkUp()) {
|
||||
} else if (networking::getEthCableConnected() and
|
||||
not udpBridge->comLinkUp()) {
|
||||
udpBridge->physicalConnectStatusChange(true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user