Fix cmd mismatch

This commit is contained in:
2026-06-18 09:36:10 +08:00
parent ec6b77d21c
commit 512c80f811
3 changed files with 12 additions and 4 deletions
Binary file not shown.
+9 -1
View File
@@ -189,7 +189,15 @@ int DC_Control(u8* idata)
{
xil_printf("[-]\tDMM Measure Select: Current\r\n");
}
xil_printf("[-]\tRLoad Select: #%d\r\n",u_rLoad);
if (u_rLoad == 0)
{
xil_printf("[-]\tRLoad Select: #0(No Load)\r\n",u_rLoad);
}
else
{
xil_printf("[-]\tRLoad Select: #%d\r\n",u_rLoad);
}
//Sanity Check Done
//Let's format the CPLD Reg Data
+2 -2
View File
@@ -133,7 +133,7 @@ err_t recv_callback(void *arg, struct tcp_pcb *tpcb,
{
switch (Recv_Data[14]) //By Judging Equipment to decide cal type
{
case 0x01: //DC Cal
case 0x00: //DC Cal
{
u8 uCMD[DC_CMD_LEN] = {0};
@@ -166,7 +166,7 @@ err_t recv_callback(void *arg, struct tcp_pcb *tpcb,
break;
}
case 0x02: //Freq Cal
case 0x01: //Freq Cal
{
u8 uCMD[Freq_CMD_LEN] = {Recv_Data[8],Recv_Data[9],Recv_Data[10],Recv_Data[11],Recv_Data[12],Recv_Data[13],Recv_Data[14]};
sw_config(uCMD);