void DAQ_WriteTest(void) { UINT8 write_buf[] = {"Today is Monday."}; while (Mount_status == USB_INT_SUCCESS || CH376Ready == 1)/*這是我自己加的判斷芯片及U盤初始化成功的標志*/ { CH376FileCreat("/DSS.TXT"); CH376ByteWrite(write_buf, 17,NULL); CH376FileClose(TRUE); }
這是我的一個測試小程序,為什么U盤里面文件創(chuàng)建成功,但是沒有寫入數(shù)據(jù),打開只有一個.