Function rs2_check_firmware_compatibility

Function Documentation

int rs2_check_firmware_compatibility(const rs2_device *device, const void *fw_image, int fw_image_size, rs2_error **error)

Checks if the device and the provided firmware image are compatible

Parameters:
  • device[in] Device to update

  • fw_image[in] Firmware image buffer

  • fw_image_size[in] Firmware image buffer size in bytes

  • error[out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored

Returns:

Non-zero if the firmware is compatible with the device and 0 otherwise