From a13249604d6a16bd1570e6f93dce7500dd15e660 Mon Sep 17 00:00:00 2001 From: Max SCHMELLER Date: Mon, 18 Nov 2024 17:47:54 +0900 Subject: [PATCH] chore(aeva): remove pointer hackery for cleaner code Signed-off-by: Max SCHMELLER --- .../nebula_hw_interfaces_aeva/connections/health.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }