ch376 問(wèn)題

我讀問(wèn)題時(shí)讀來(lái)的長(zhǎng)度不是超過(guò)我文件實(shí)質(zhì)長(zhǎng)度 更嚴(yán)重的是第一個(gè)字節(jié)讀不出來(lái)?? 我的代碼如下(文件長(zhǎng)度為32 ),讀出來(lái)的來(lái)為L(zhǎng)en = 0x38??

if( CH376FileOpenPath( "/UPDATE.HTU" ) == USB_INT_SUCCESS ) { u8 *md5buf = mymalloc( 40 ); if( NULL != md5buf ) { UINT16 Len = 0; CH376ByteLocate( 0 ); if( USB_INT_SUCCESS == CH376ByteRead( md5buf, 32, &Len ) ) { debugPrintf( "Read UPDATE.HTU OK", sizeof( "Read UPDATE.HTU OK" ) ); CH376FileClose( FALSE ); if( Len == 32 ) { u8 i = 0; debugPrintf( "Read UPDATE.HTU len OK", sizeof( "Read UPDATE.HTU len OK" ) );

for(; i < 16; i++ ) { md5buf[i] = ( AsciiToHex( md5buf[2 * i] ) << 4 ) | ( AsciiToHex( md5buf[2 * i + 1] ) ); debugPrintfHex2Ascii( md5buf, 16 ); } if( USB_INT_SUCCESS == CopyUpdateFile( "/UPDATE.BIN", md5buf ) ) { OSQPost( app_lcd_MsgQptr( ), (void*)( LCD_MSGQ_USB | LCD_USB_UPDATE_OK ) ); }else { OSQPost( app_lcd_MsgQptr( ), (void*)( LCD_MSGQ_USB | LCD_USB_UPDATE_FAIL ) ); } } } myfree( md5buf, 40 ); } }

補(bǔ)充一下 實(shí)質(zhì)內(nèi)存為81CE1CB0EC2C8FD800658EA7AE714454 讀出來(lái)為1CE1CB0EC2C8FD800658EA7AE7144544


只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频