Skip to content

Commit

Permalink
remove case and change size to unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Nov 15, 2023
1 parent d1ed76d commit c59029c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/librealsense2/h/rs_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ extern "C" {
/**
* Firmware size constants
*/
const int signed_fw_size = 0x18031C;
const int unsigned_fw_size = 0x200000;
const unsigned int signed_fw_size = 0x18031C;
const unsigned int unsigned_fw_size = 0x200000;

/**
* librealsense Recorder is intended for effective unit-testing
Expand Down
2 changes: 1 addition & 1 deletion src/ds/d400/d400-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ namespace librealsense
bool d400_device::check_fw_compatibility( const std::vector< uint8_t > & image ) const
{
// check if the given FW size matches the expected FW size
if( ( static_cast< int >( image.size() ) != signed_fw_size ) )
if( ( image.size() != signed_fw_size ) )
throw librealsense::invalid_value_exception(
rsutils::string::from() << "Unsupported firmware binary image provided - " << image.size() << " bytes" );

Expand Down

0 comments on commit c59029c

Please sign in to comment.