Skip to content

Commit

Permalink
LKProfileLoad : fix "BT_SPP" device params loading
Browse files Browse the repository at this point in the history
  • Loading branch information
brunotl committed Aug 23, 2024
1 parent 48e5a4a commit 7b2ea1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/Source/LKProfileLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ void LKParseProfileString(const char *sname, const char *svalue) {

if (settings::read(sname, svalue, szRegistryDevice[n], Port.szDeviceName)) return;
if (settings::read(sname, svalue, szRegistryPortName[n], Port.szPort)) {
if (_tcsncmp(Port.szPort, _T("BT_HM10:"), 3) == 0) {
if (_tcsncmp(Port.szPort, _T("BT_HM10:"), 8) == 0) {
tstring address(&Port.szPort[8]);
lk::snprintf(Port.szPort, _T("BLE:%s"), address.c_str());
}
Expand Down

0 comments on commit 7b2ea1d

Please sign in to comment.