Modified qr_packet.c file