Skip to content

Commit

Permalink
FW logs parser should parse :f format as 32 bit float
Browse files Browse the repository at this point in the history
  • Loading branch information
OhadMeir committed Feb 11, 2024
1 parent f90f4a2 commit c151827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fw-logs/fw-string-formatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace librealsense

st_regular_exp[2] << "\\{\\b(" << i << "):f\\}";
regular_exp[2] = st_regular_exp[2].str();
st_replacement[2] << params[i];
st_replacement[2] << *reinterpret_cast< const float * >( &params[i] ); // Parse as 4 raw bytes of float
replacement[2] = st_replacement[2].str();
exp_replace_map[regular_exp[2]] = replacement[2];

Expand Down

0 comments on commit c151827

Please sign in to comment.