diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-26 19:51:13 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-26 20:00:27 +0200 |
| commit | 2c5973ee7e127dc114e668d10a42fef83e677f46 (patch) | |
| tree | 2c9d6ebc6838a806a39e3bc4024a207d7fb8bed9 | |
| parent | f938bb790eea27a4ae9db6fe0f6f0300a1e1ae86 (diff) | |
peripheral.c: initialize common members only
Other members will be initialized according to peripheral configuration.
| -rw-r--r-- | src/peripheral/src/peripheral.c | 2 |
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) { |
