1.写mcu时增加缓存输出

This commit is contained in:
payton 2024-01-11 20:57:17 +08:00
parent a8a727b56b
commit 9ef9c132a4

View File

@ -101,6 +101,10 @@ UINT8 sf_mcu_write_multi(UINT8 reg[], UINT8 data[], UINT32 num)
{
printf("W_addr[%d]=0x%02x\n", reg[i], data[i]);
}
printf("\n");
fflush(NULL);
system("sync");
sf_sleep_ms(100);
if(0 <= sf_commu_set_mcu_many(reg, data, &pnum))
{
// for(i = 0; i < num; i++)