Skip to content

Commit

Permalink
fixup! Fix FW logs bug, did not parse logs returned for start command
Browse files Browse the repository at this point in the history
  • Loading branch information
OhadMeir committed Apr 15, 2024
1 parent 8cd2376 commit e4f0782
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/firmware_logger_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ namespace librealsense
{
auto res = _hw_monitor->send( update_command );
if( ! res.empty() )
HandleReceivedData( res );
handle_received_data( res );
}
}

void firmware_logger_device::HandleReceivedData( std::vector< uint8_t > & res )
void firmware_logger_device::handle_received_data( const std::vector< uint8_t > & res )
{
// Convert bytes to fw_logs_binary_data
auto beginOfLogIterator = res.data();
Expand Down Expand Up @@ -180,7 +180,7 @@ namespace librealsense
{
auto res = _hw_monitor->send( start_command );
if( !res.empty() )
HandleReceivedData( res );
handle_received_data( res );
}
}

Expand All @@ -196,7 +196,7 @@ namespace librealsense
{
auto res = _hw_monitor->send( stop_command );
if( !res.empty() )
HandleReceivedData( res );
handle_received_data( res );
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/firmware_logger_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace librealsense

protected:
void get_fw_logs_from_hw_monitor();
void HandleReceivedData( std::vector< uint8_t > & res );
void handle_received_data( const std::vector< uint8_t > & res );
void get_flash_logs_from_hw_monitor();
virtual command get_update_command();
virtual size_t get_log_size( const uint8_t * buff ) const;
Expand Down

0 comments on commit e4f0782

Please sign in to comment.