Searched refs:read_res (Results 1 – 1 of 1) sorted by relevance
4498 int read_res; in prepare_and_send_fw_packet() local4509 read_res = fs_read(&iface_ctx.fw_update_file, iface_ctx.fw_packet.data, in prepare_and_send_fw_packet()4511 if (read_res < 0) { in prepare_and_send_fw_packet()4513 LOG_ERR("Failed to read fw update file [%d]", read_res); in prepare_and_send_fw_packet()4515 } else if (read_res < XMODEM_DATA_SIZE) { in prepare_and_send_fw_packet()4519 for (int i = read_res; i < XMODEM_DATA_SIZE; i++) { in prepare_and_send_fw_packet()4529 iface_ctx.file_pos += read_res; in prepare_and_send_fw_packet()