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