mirror of
https://github.com/espressif/openthread.git
synced 2026-07-30 23:57:47 +00:00
[style] fix alignments (#2386)
This commit is contained in:
committed by
Jonathan Hui
parent
4972d7c091
commit
da4ddd7bf0
@@ -1902,12 +1902,14 @@ bool Mac::RadioSupportsRetries(void)
|
||||
void Mac::FillMacCountersTlv(NetworkDiagnostic::MacCountersTlv &aMacCounters) const
|
||||
{
|
||||
aMacCounters.SetIfInUnknownProtos(mCounters.mRxOther);
|
||||
aMacCounters.SetIfInErrors(mCounters.mRxErrNoFrame + mCounters.mRxErrUnknownNeighbor + mCounters.mRxErrInvalidSrcAddr +
|
||||
mCounters.mRxErrSec + mCounters.mRxErrFcs + mCounters.mRxErrOther);
|
||||
aMacCounters.SetIfInErrors(mCounters.mRxErrNoFrame + mCounters.mRxErrUnknownNeighbor +
|
||||
mCounters.mRxErrInvalidSrcAddr + mCounters.mRxErrSec + mCounters.mRxErrFcs +
|
||||
mCounters.mRxErrOther);
|
||||
aMacCounters.SetIfOutErrors(mCounters.mTxErrCca);
|
||||
aMacCounters.SetIfInUcastPkts(mCounters.mRxUnicast);
|
||||
aMacCounters.SetIfInBroadcastPkts(mCounters.mRxBroadcast);
|
||||
aMacCounters.SetIfInDiscards(mCounters.mRxAddressFiltered + mCounters.mRxDestAddrFiltered + mCounters.mRxDuplicated);
|
||||
aMacCounters.SetIfInDiscards(mCounters.mRxAddressFiltered + mCounters.mRxDestAddrFiltered +
|
||||
mCounters.mRxDuplicated);
|
||||
aMacCounters.SetIfOutUcastPkts(mCounters.mTxUnicast);
|
||||
aMacCounters.SetIfOutBroadcastPkts(mCounters.mTxBroadcast);
|
||||
aMacCounters.SetIfOutDiscards(mCounters.mTxErrBusyChannel);
|
||||
|
||||
@@ -537,7 +537,7 @@
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT
|
||||
#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED
|
||||
#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED
|
||||
#endif
|
||||
|
||||
/** Log output goes to the bit bucket (disabled) */
|
||||
@@ -856,7 +856,7 @@
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER
|
||||
#define OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER 0
|
||||
#define OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user