Skip to content

Commit

Permalink
try to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed Nov 11, 2024
1 parent 643a802 commit 0ba7692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libudpard_demo/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ static void* regStore(struct Register* const self, void* const context)
assert((self != NULL) && (context != NULL));
if (self->persistent && self->remote_mutable)
{
byte_t serialized[uavcan_register_Value_1_0_EXTENT_BYTES_];
byte_t serialized[uavcan_register_Value_1_0_EXTENT_BYTES_] = {0};
size_t sr_size = uavcan_register_Value_1_0_EXTENT_BYTES_;
const bool ok = (uavcan_register_Value_1_0_serialize_(&self->value, serialized, &sr_size) >= 0) &&
storagePut(self->name, sr_size, &serialized[0]);
Expand Down

0 comments on commit 0ba7692

Please sign in to comment.