From 7d8ba5df7d883c86c24aa38449c4a6dd126e920f Mon Sep 17 00:00:00 2001 From: QuakeGod <quakegod@sina.com> Date: 星期二, 06 八月 2024 14:41:31 +0800 Subject: [PATCH] Radio_LLCC68 1.15, Stable version --- ComLib/Src/KMachine.c | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ComLib/Src/KMachine.c b/ComLib/Src/KMachine.c index 54c8235..11b8252 100644 --- a/ComLib/Src/KMachine.c +++ b/ComLib/Src/KMachine.c @@ -245,15 +245,16 @@ int ReadFlashMem(void * pBuf, void * pAddrFlash, int nByteSize) { -// memcpy(pBuf,pAddrFlash,nSize); - for (int i=0;i<nByteSize/4;i++) - { - ((uint32_t *)pBuf)[i] = ((uint32_t *)pAddrFlash)[i]; - } - for (int i=nByteSize/4*2;i<nByteSize/2;i++) - { - ((uint16_t *)pBuf)[i] = ((uint16_t *)pAddrFlash)[i]; - } + memcpy(pBuf,pAddrFlash,nByteSize); +// for (int i=0;i<nByteSize/4;i++) +// { +// ((uint32_t *)pBuf)[i] = ((uint32_t *)pAddrFlash)[i]; +// } +// for (int i=nByteSize/4*2;i<nByteSize/2;i++) +// { +// ((uint16_t *)pBuf)[i] = ((uint16_t *)pAddrFlash)[i]; +// } + return nByteSize; } -- Gitblit v1.9.1