fix:C141 error in keil c51

This commit is contained in:
IOsetting 2022-01-01 16:05:05 +08:00
parent 97fa48bbe0
commit af375ba868

View File

@ -27,8 +27,9 @@ void MEM_SetOnchipExtRAM(HAL_State_t HAL_State)
void MEM_ReadChipID(uint8_t *buff) void MEM_ReadChipID(uint8_t *buff)
{ {
uint8_t i;
P_SW2 = 0x80; P_SW2 = 0x80;
for (uint8_t i = 0; i < 32; i++) for (i = 0; i < 32; i++)
{ {
*(buff + i) = MEM_ReadXDATA(CHIPIDxx + i); *(buff + i) = MEM_ReadXDATA(CHIPIDxx + i);
} }