escaping msgs debug
This commit is contained in:
parent
22730a275b
commit
50b8a12382
|
@ -173,8 +173,10 @@ memcpy(updater->inmsg_queue->queue, msg, size);
|
|||
void code_message_inqueue_process(){
|
||||
int size=0;
|
||||
if(*(int*)updater->mode==CODE_RUNNING){
|
||||
if(*(uint16_t*)(updater->inmsg_queue->queue+size) > *(uint16_t*) updater->update_no){
|
||||
uint16_t update_no=*(uint16_t*)(updater->inmsg_queue->queue+size);
|
||||
fprintf(stdout,"[debug]Inside inmsg code running");
|
||||
if( (*(uint16_t*)(updater->inmsg_queue->queue)) > (*(uint16_t*) updater->update_no) ){
|
||||
fprintf(stdout,"[debug]Inside update number comparision");
|
||||
uint16_t update_no=*(uint16_t*)(updater->inmsg_queue->queue);
|
||||
size +=sizeof(uint16_t);
|
||||
uint16_t update_bcode_size =*(uint16_t*)(updater->inmsg_queue->queue+size);
|
||||
size +=sizeof(uint16_t);
|
||||
|
|
Loading…
Reference in New Issue