aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-26 19:51:13 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-26 20:00:27 +0200
commitfe7e006a310911112bb17a7d9e7671226f1cd397 (patch)
tree8cad552bbeb24ae1909ae5d38ce7eb4604641448 /src
parentb53db6f005b6a7d3b27a96a581dec7fdfe5b6d58 (diff)
downloadjancity-fe7e006a310911112bb17a7d9e7671226f1cd397.tar.gz
peripheral.c: initialize common members only
Other members will be initialized according to peripheral configuration.
Diffstat (limited to 'src')
-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)
{