Homekit GA 9_8_12 reboot_device.vbs typo

2 posts / 0 new
Last post
jpl
Offline
Last seen: 2 months 1 week ago
Joined: 2017-05-02 09:42
Homekit GA 9_8_12 reboot_device.vbs typo

Hi Dialog Team,

Just a quick note to let you know that

workspace_SmartSnippets_Studio\DA1468x_SDK_BTLE_v_1.0.8_homekit_GA_9_8_12\utilities\scripts\qspi\reboot_device.vbs

was trying to read an incorrect registry for Jlink at line 9

jlink_path = objShell.RegRead("HKCU\Software\SEGGER\J-Link\InstallPath") + "JLink.exe"

After checking my registry, I found out that J-Link keeps the InstallPath under the version number like this

Computer\HKEY_CURRENT_USER\Software\SEGGER\J-Link\V512f

After changing line 9 of reboot_devce.vbs to

jlink_path = objShell.RegRead("HKCU\Software\SEGGER\J-Link\V512f\InstallPath") + "JLink.exe"

then there was no more error running scripts.

A quick suggestion is to make the vbs scan through the registry tree for
Computer\HKEY_CURRENT_USER\Software\SEGGER\J-Link
and look for InstallPath recursively.

Thanks, overall good experience with the SDK, everything works out of the box. Well done.

Cheers
JP

Device: 
IM_Dialog
Offline
Last seen: 3 days 17 hours ago
Joined: 2016-12-06 22:25
Thanks for taking the time to

Thanks for taking the time to report this, we appreciate your feedback.

I'll raise an internal ticket requesting this issue is investigated.

Best regards

IM_Dialog