update systembus: omit redundant code

This commit is contained in:
Gatsby Van
2024-03-12 11:20:56 +08:00
parent 712d37061a
commit 6b016e1181
2 changed files with 5 additions and 3 deletions
+4 -1
View File
@@ -453,7 +453,10 @@ int32_t SystemBus_HandleCmd(SYSBUS *instPtr)
Phy_SetupNextSlot(phyRef, PHY_TOR_RX, L1_10KBPS_10MS_FRAME, NULL);
break;
}
if (reconfig == true)
{
Linklayer_Reconfig(linkInstPtr, &linkConfig);
}
Linklayer_Start(linkInstPtr);
instPtr->sysbusLog.lastConfig[0] = data[WD_MODE_CMD];
instPtr->sysbusLog.lastConfig[1] = data[WD_EN_CMD];
@@ -73,10 +73,9 @@ typedef struct
typedef struct
{
uint8_t len;
uint16_t len;
uint8_t checkSum;
uint8_t isValid;
uint8_t dummy;
uint8_t data[256];
} SYSBUS_UART_FRAME;