Skip to content

Commit c68b997

Browse files
committed
timer: agt: fix uninitialized memory
This completes be99a22
1 parent 5be4ea1 commit c68b997

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/arduino/FspTimer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,11 @@ class AGTimer {
7676
ext_cfg.trigger_edge = AGT_TRIGGER_EDGE_RISING;
7777

7878
cfg.p_extend = &ext_cfg;
79+
80+
memset(&ctrl, 0, sizeof(agt_instance_ctrl_t));
7981
}
8082
agt_extended_cfg_t ext_cfg;
8183
agt_instance_ctrl_t ctrl;
82-
8384
};
8485

8586

0 commit comments

Comments
 (0)