Skip to content

Commit

Permalink
we dont want to initalize the message_index and num_keys, use use NOL…
Browse files Browse the repository at this point in the history
…INTNEXTLINE instead
  • Loading branch information
vegano1 committed Jan 23, 2024
1 parent 98c2714 commit f16982a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/can/core/messages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1235,10 +1235,11 @@ struct BindSensorOutputResponse

using TipStatusQueryRequest = Empty<MessageId::get_tip_status_request>;

// NOLINTNEXTLINE(cppcoreguidelines-pro-type-member-init)
struct PushTipPresenceNotification
: BaseMessage<MessageId::tip_presence_notification> {
uint32_t message_index = 0;
uint8_t ejector_flag_status = 0;
uint32_t message_index;
uint8_t ejector_flag_status;
can::ids::SensorId sensor_id{};

template <bit_utils::ByteIterator Output, typename Limit>
Expand Down Expand Up @@ -1474,10 +1475,11 @@ struct SetGripperErrorToleranceRequest

using GetMotorUsageRequest = Empty<MessageId::get_motor_usage_request>;

// NOLINTNEXTLINE(cppcoreguidelines-pro-type-member-init)
struct GetMotorUsageResponse
: BaseMessage<MessageId::get_motor_usage_response> {
uint32_t message_index = 0;
uint8_t num_keys = 0;
uint32_t message_index;
uint8_t num_keys;
struct __attribute__((__packed__)) UsageValueField {
uint16_t key;
uint16_t len;
Expand Down

0 comments on commit f16982a

Please sign in to comment.