Compare commits
3
Commits
a2032414cc
...
c5730a7fd5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5730a7fd5 | ||
|
|
96181a0734 | ||
|
|
8a94ffacac |
@@ -20,8 +20,6 @@
|
||||
#define __COMMON_H_
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include "util/util.h"
|
||||
#include "error.h"
|
||||
|
||||
@@ -44,7 +42,7 @@
|
||||
#endif
|
||||
#if _814_DEBUG_LEVEL >= 1
|
||||
#define DBG_ERROR(...) __PRINT_BLOCK( \
|
||||
printf("in"__FILE__" #%4d [error]\t",__LINE__); \
|
||||
printf("[error]\tin"__FILE__":%4d ",__LINE__); \
|
||||
printf(__VA_ARGS__); \
|
||||
)
|
||||
#endif
|
||||
|
||||
@@ -341,7 +341,7 @@ int MPC_StateUpload(MPC_INST* instPtr , uint8_t* mgmtBuffer , uint32_t mgmtMsgC
|
||||
dataChunk = (L2_GetNextFrameNum(linkInstPtr) - linkInstPtr->netStartTime) * 1000 + L2_GetNextSlotNum(linkInstPtr) * 5 ;
|
||||
MPC_InsertChunk(mpcTxMsgBuff, STATE_SETUP_TIME_OFFSET, STATE_SETUP_TIME_LEN, dataChunk);
|
||||
// number of nodes
|
||||
dataChunk = GetNodeNum(linkInstPtr->nodeList);
|
||||
dataChunk = L2_GetNodeListLen(linkInstPtr->nodeList);
|
||||
MPC_InsertChunk(mpcTxMsgBuff, STATE_NUM_NODE_OFFSET, STATE_NUM_NODE_LEN, dataChunk);
|
||||
|
||||
// frame 1 counter
|
||||
@@ -432,7 +432,7 @@ int MPC_StateUpload(MPC_INST* instPtr , uint8_t* mgmtBuffer , uint32_t mgmtMsgC
|
||||
// TODO : Currently DJ is node 1 , only Byte 1 is activate , others is useless
|
||||
// Topo node 1
|
||||
dataChunk = BIT(L2_GetNodeId(linkInstPtr) - 1);
|
||||
if (GetNodeNum(linkInstPtr->nodeList) > 1 ) {
|
||||
if (L2_GetNodeListLen(linkInstPtr->nodeList) > 1 ) {
|
||||
for(int i = 1; i <= linkInstPtr->config.netScale; i++){
|
||||
if (L2_isNodeInList(linkInstPtr->nodeList, i)) {
|
||||
dataChunk |= BIT(i-1);
|
||||
|
||||
Reference in New Issue
Block a user