Modified qr_packet_controller.c file