aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/peripheral/src/peripheral.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peripheral/src/peripheral.c b/src/peripheral/src/peripheral.c
index c461573..eeec4fa 100644
--- a/src/peripheral/src/peripheral.c
+++ b/src/peripheral/src/peripheral.c
@@ -43,7 +43,7 @@ void peripheral_update(union peripheral *const p)
void peripheral_init(const struct peripheral_cfg *const cfg,
union peripheral *const p)
{
- *p = (const union peripheral){0};
+ p->common = (const struct peripheral_common){0};
switch (p->common.type = cfg->type)
{