fix: avoid crash when optional <peripheral> is missing in svd. issue: https://github.com/platformio/platform-raspberrypi/issues/21
This commit is contained in:
@@ -985,7 +985,7 @@ export class PeripheralTreeProvider implements vscode.TreeDataProvider<TreeNode>
|
||||
const options: any = {
|
||||
name: peripheralDef.name[0],
|
||||
baseAddress: parseInteger(peripheralDef.baseAddress[0]),
|
||||
description: peripheralDef.description[0],
|
||||
description: peripheralDef.description ? peripheralDef.description[0] : '',
|
||||
totalLength,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user