From e4f0782ec8004cb011b055549dc50d09b3a1ae53 Mon Sep 17 00:00:00 2001 From: ohadmeir Date: Mon, 15 Apr 2024 14:18:55 +0300 Subject: [PATCH] fixup! Fix FW logs bug, did not parse logs returned for start command --- src/firmware_logger_device.cpp | 8 ++++---- src/firmware_logger_device.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/firmware_logger_device.cpp b/src/firmware_logger_device.cpp index ce029b96de..bd07c08f39 100644 --- a/src/firmware_logger_device.cpp +++ b/src/firmware_logger_device.cpp @@ -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(); @@ -180,7 +180,7 @@ namespace librealsense { auto res = _hw_monitor->send( start_command ); if( !res.empty() ) - HandleReceivedData( res ); + handle_received_data( res ); } } @@ -196,7 +196,7 @@ namespace librealsense { auto res = _hw_monitor->send( stop_command ); if( !res.empty() ) - HandleReceivedData( res ); + handle_received_data( res ); } } diff --git a/src/firmware_logger_device.h b/src/firmware_logger_device.h index 6cdcc8da60..3a5cd61473 100644 --- a/src/firmware_logger_device.h +++ b/src/firmware_logger_device.h @@ -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;