10 :
update_device(ctx, register_device_notifications, usb_device), _product_line(
"D400")
12 auto info = usb_device->get_info();
25 throw std::runtime_error(
"DFU - failed to parse serial number!");
29 rv << std::setfill(
'0') << std::setw(2) << std::hex << static_cast<int>(buffer[
i]);
std::string _serial_number
GLsizei const GLchar *const * string
std::shared_ptr< rs2_update_progress_callback > update_progress_callback_ptr
def info(name, value, persistent=False)
std::string parse_serial_number(const std::vector< uint8_t > &buffer) const
static const std::map< std::uint16_t, std::string > rs400_sku_names
void update(const void *fw_image, int fw_image_size, update_progress_callback_ptr=nullptr) const override
ds_update_device(std::shared_ptr< context > ctx, bool register_device_notifications, std::shared_ptr< platform::usb_device > usb_device)
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