12 :
update_device(ctx, register_device_notifications, usb_device),
_name(
"Intel RealSense SR300 Recovery"), _product_line(
"SR300")
22 std::this_thread::sleep_for(std::chrono::seconds(10));
28 throw std::runtime_error(
"DFU - failed to parse serial number!");
32 rv << std::setfill(
'0') << std::setw(2) << std::hex << static_cast<int>(buffer[
i]);
virtual void update(const void *fw_image, int fw_image_size, update_progress_callback_ptr=nullptr) const override
sr300_update_device(std::shared_ptr< context > ctx, bool register_device_notifications, std::shared_ptr< platform::usb_device > usb_device)
GLsizei const GLchar *const * string
std::shared_ptr< rs2_update_progress_callback > update_progress_callback_ptr
std::string parse_serial_number(const std::vector< uint8_t > &buffer) const
virtual void update(const void *fw_image, int fw_image_size, update_progress_callback_ptr=nullptr) const override
std::vector< uint8_t > _serial_number_buffer
std::string _serial_number