Searched refs:read_res (Results 1 – 1 of 1) sorted by relevance
4408 int read_res; in prepare_and_send_fw_packet() local4419 read_res = fs_read(&iface_ctx.fw_update_file, iface_ctx.fw_packet.data, in prepare_and_send_fw_packet()4421 if (read_res < 0) { in prepare_and_send_fw_packet()4423 LOG_ERR("Failed to read fw update file [%d]", read_res); in prepare_and_send_fw_packet()4425 } else if (read_res < XMODEM_DATA_SIZE) { in prepare_and_send_fw_packet()4429 for (int i = read_res; i < XMODEM_DATA_SIZE; i++) { in prepare_and_send_fw_packet()4439 iface_ctx.file_pos += read_res; in prepare_and_send_fw_packet()