msg out bug fix

This commit is contained in:
vivek-shankar 2017-01-27 10:09:26 -05:00
parent 0d664edff7
commit 8f8cccf913

View File

@ -136,7 +136,9 @@ namespace buzz_utility{
*(uint8_t*)(buff_send + tot) = (uint8_t)updater_msg_pre; *(uint8_t*)(buff_send + tot) = (uint8_t)updater_msg_pre;
tot += sizeof(uint8_t); tot += sizeof(uint8_t);
/*Append updater msg size*/ /*Append updater msg size*/
*(uint16_t*)(buff_send + tot) = *(uint16_t*) (getupdate_out_msg_size()); //*(uint16_t*)(buff_send + tot) = *(uint16_t*) (getupdate_out_msg_size());
updater_msgSize=*(uint16_t*) (getupdate_out_msg_size());
*(uint16_t*)(buff_send + tot)=updater_msgSize;
fprintf(stdout,"Updater sent msg size : %i \n", (int)*(uint16_t*) (getupdate_out_msg_size())); fprintf(stdout,"Updater sent msg size : %i \n", (int)*(uint16_t*) (getupdate_out_msg_size()));
tot += sizeof(uint16_t); tot += sizeof(uint16_t);
/*Append updater msgs*/ /*Append updater msgs*/