Skip to content

Commit fdeb172

Browse files
committed
When a USB error occurs, chip-id does not appear to be initialized.
1 parent 305b7a4 commit fdeb172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ int stlink_load_device_params(stlink_t *sl) {
13051305
DLOG("Loading device parameters....\n");
13061306
const struct stlink_chipid_params *params = NULL;
13071307
stlink_core_id(sl);
1308-
uint32_t chip_id;
1308+
uint32_t chip_id = 0;
13091309
uint32_t flash_size;
13101310

13111311
stlink_chip_id(sl, &chip_id);

0 commit comments

Comments
 (0)