Skip to content

Commit eaac320

Browse files
committed
FspTimer: clear structures at object creating
1 parent 853d318 commit eaac320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/FspTimer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class GPTimer {
5858

5959
}
6060

61-
gpt_instance_ctrl_t ctrl;
62-
gpt_extended_cfg_t ext_cfg;
61+
gpt_instance_ctrl_t ctrl = { 0 };
62+
gpt_extended_cfg_t ext_cfg = { 0 };
6363

6464

6565
};

0 commit comments

Comments
 (0)