diff --git a/src/fw-update/fw-update-device.cpp b/src/fw-update/fw-update-device.cpp index 5470943272f..3ab2c5652db 100644 --- a/src/fw-update/fw-update-device.cpp +++ b/src/fw-update/fw-update-device.cpp @@ -15,6 +15,8 @@ #include #include #include +#include + #define DEFAULT_TIMEOUT 100 #define FW_UPDATE_INTERFACE_NUMBER 0 namespace librealsense @@ -187,7 +189,7 @@ namespace librealsense , _product_line( product_line ) , _serial_number( mipi_device->get_info().serial_number ) { - std::ifstream fw_path_in_device(_physical_port); + std::ifstream fw_path_in_device(_physical_port.c_str()); if (!fw_path_in_device) { throw std::runtime_error("Firmware Update failed - wrong path or permissions missing"); @@ -304,7 +306,7 @@ namespace librealsense throw librealsense::invalid_value_exception("Device: " + get_serial_number() + " failed to update firmware\nImage is unsupported for this device or corrupted"); // Write signed firmware to appropriate file descriptor - std::ofstream fw_path_in_device(_physical_port, std::ios::binary); + std::ofstream fw_path_in_device(_physical_port.c_str(), std::ios::binary); if (!fw_path_in_device) { throw std::runtime_error("Firmware Update failed - wrong path or permissions missing"); diff --git a/src/mf/mf-backend.cpp b/src/mf/mf-backend.cpp index 9b1ce2cbd7f..2067888d71e 100644 --- a/src/mf/mf-backend.cpp +++ b/src/mf/mf-backend.cpp @@ -176,6 +176,11 @@ namespace librealsense return devices; } + std::vector wmf_backend::query_mipi_devices() const + { + return std::vector(); + } + class win_event_device_watcher : public device_watcher { public: diff --git a/src/mf/mf-backend.h b/src/mf/mf-backend.h index 41a5ac37560..87da8f6b421 100644 --- a/src/mf/mf-backend.h +++ b/src/mf/mf-backend.h @@ -25,6 +25,9 @@ namespace librealsense std::shared_ptr create_hid_device(hid_device_info info) const override; std::vector query_hid_devices() const override; + + std::vector query_mipi_devices() const override; + std::shared_ptr create_device_watcher() const override; std::string get_device_serial(uint16_t device_vid, uint16_t device_pid, const std::string& device_uid) const override; diff --git a/src/rsusb-backend/rsusb-backend.cpp b/src/rsusb-backend/rsusb-backend.cpp index 6fa2a737e93..745941d85de 100644 --- a/src/rsusb-backend/rsusb-backend.cpp +++ b/src/rsusb-backend/rsusb-backend.cpp @@ -64,5 +64,10 @@ namespace librealsense { return query_hid_devices_info(); } + + std::vector rs_backend::query_mipi_devices() const + { + return std::vector(); + } } } diff --git a/src/rsusb-backend/rsusb-backend.h b/src/rsusb-backend/rsusb-backend.h index 5a35f0b2975..1018293e6da 100644 --- a/src/rsusb-backend/rsusb-backend.h +++ b/src/rsusb-backend/rsusb-backend.h @@ -27,6 +27,7 @@ namespace librealsense // Not supported std::shared_ptr create_hid_device(hid_device_info info) const override; std::vector query_hid_devices() const override; + std::vector query_mipi_devices() const override; }; } }