Skip to content

Commit

Permalink
Merge pull request #6926 from nohayassin/fw_logger_bug_fix
Browse files Browse the repository at this point in the history
Fw logger bug fix
  • Loading branch information
ev-mp authored Aug 4, 2020
2 parents 3b1b45d + 04e0424 commit 4cc9820
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/firmware_logger_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ namespace librealsense
// convert bytes to fw_logs_binary_data
for (int i = 0; i < res.size() / fw_logs::BINARY_DATA_SIZE; ++i)
{
if (*beginOfLogIterator == 0)
break;
auto endOfLogIterator = beginOfLogIterator + fw_logs::BINARY_DATA_SIZE;
std::vector<uint8_t> resultsForOneLog;
resultsForOneLog.insert(resultsForOneLog.begin(), beginOfLogIterator, endOfLogIterator);
Expand Down
4 changes: 1 addition & 3 deletions tools/fw-logger/rs-fw-logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ int main(int argc, char* argv[])
else
{
stringstream sstr;
sstr << log_message.get_timestamp();
sstr << " " << log_message.get_severity_str();
sstr << " FW_Log_Data:";
sstr << datetime_string() << " FW_Log_Data:";
std::vector<uint8_t> msg_data = log_message.data();
for (int i = 0; i < msg_data.size(); ++i)
{
Expand Down

0 comments on commit 4cc9820

Please sign in to comment.