Fixed some bugs when receiving large data.
This commit is contained in:
@@ -856,6 +856,10 @@ int Chirp::realloc(uint32_t min)
|
||||
min = m_bufSize+CRP_BUFSIZE;
|
||||
else
|
||||
min += CRP_BUFSIZE;
|
||||
|
||||
if(min==m_bufSize)
|
||||
return CRP_RES_OK;
|
||||
|
||||
uint8_t *newbuf = new (std::nothrow) uint8_t[min];
|
||||
if (newbuf==NULL)
|
||||
return CRP_RES_ERROR_MEMORY;
|
||||
|
||||
@@ -64,3 +64,8 @@ void ll_system_process() {
|
||||
void ll_system_delay(uint32_t msec) {
|
||||
USB_OTG_BSP_mDelay(msec);
|
||||
}
|
||||
|
||||
|
||||
void ll_system_toggle_led() {
|
||||
STM_EVAL_LEDToggle(LED6);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user