Skip to content

Commit f16982a

Browse files
committed
we dont want to initalize the message_index and num_keys, use use NOLINTNEXTLINE instead
1 parent 98c2714 commit f16982a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

include/can/core/messages.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,10 +1235,11 @@ struct BindSensorOutputResponse
12351235

12361236
using TipStatusQueryRequest = Empty<MessageId::get_tip_status_request>;
12371237

1238+
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-member-init)
12381239
struct PushTipPresenceNotification
12391240
: BaseMessage<MessageId::tip_presence_notification> {
1240-
uint32_t message_index = 0;
1241-
uint8_t ejector_flag_status = 0;
1241+
uint32_t message_index;
1242+
uint8_t ejector_flag_status;
12421243
can::ids::SensorId sensor_id{};
12431244

12441245
template <bit_utils::ByteIterator Output, typename Limit>
@@ -1474,10 +1475,11 @@ struct SetGripperErrorToleranceRequest
14741475

14751476
using GetMotorUsageRequest = Empty<MessageId::get_motor_usage_request>;
14761477

1478+
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-member-init)
14771479
struct GetMotorUsageResponse
14781480
: BaseMessage<MessageId::get_motor_usage_response> {
1479-
uint32_t message_index = 0;
1480-
uint8_t num_keys = 0;
1481+
uint32_t message_index;
1482+
uint8_t num_keys;
14811483
struct __attribute__((__packed__)) UsageValueField {
14821484
uint16_t key;
14831485
uint16_t len;

0 commit comments

Comments
 (0)