diff --git a/nebula_hw_interfaces/include/nebula_hw_interfaces/nebula_hw_interfaces_aeva/connections/health.hpp b/nebula_hw_interfaces/include/nebula_hw_interfaces/nebula_hw_interfaces_aeva/connections/health.hpp index 9e11f74c..1b8f1e1d 100644 --- a/nebula_hw_interfaces/include/nebula_hw_interfaces/nebula_hw_interfaces_aeva/connections/health.hpp +++ b/nebula_hw_interfaces/include/nebula_hw_interfaces/nebula_hw_interfaces_aeva/connections/health.hpp @@ -58,8 +58,8 @@ class HealthParser : public AevaParser entries.reserve(n_entries); for (size_t i = 0; i < n_entries; ++i) { - auto pointer = &*payload_bytes.consume_unsafe(sizeof(uint32_t)).cbegin(); - auto entry = boost::endian::load_little_u32(pointer); + auto health_code_raw = payload_bytes.consume_unsafe(sizeof(uint32_t)).cbegin(); + auto entry = boost::endian::load_little_u32(health_code_raw.base()); entries.emplace_back(entry); }