escaping msgs debug

This commit is contained in:
vivek-shankar 2017-01-27 22:57:56 -05:00
parent 22730a275b
commit 50b8a12382
1 changed files with 4 additions and 2 deletions

View File

@ -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);