Skip to content

Commit

Permalink
fw-update: clean windows build issue
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Perchanov <[email protected]>
  • Loading branch information
dmipx committed May 28, 2024
1 parent 2ef06eb commit 0bc3037
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/fw-update/fw-update-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,13 @@ namespace librealsense
, _product_line( product_line )
, _serial_number( mipi_device->get_info().serial_number )
{
#if defined(_WINDOWS) || defined(WIN32) || defined(WIN64)
/* do nothing */
#else
std::ifstream fw_path_in_device(_physical_port);
if (!fw_path_in_device)
{
throw std::runtime_error("Firmware Update failed - wrong path or permissions missing");
return;
}
fw_path_in_device.close();
#endif
}

update_device::~update_device()
Expand Down

0 comments on commit 0bc3037

Please sign in to comment.