You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now the version of libmodbus is 3.1.10, but this script generate version 3.1.1
Maybe verMicro = s.substr(s.indexOf(",") + 3, 1); should be modified.
s.substr(s.indexOf(",") + 3, 2) is rude.
I'm not familar with vbs. Who can do this?
function readVersion() {
var fso, cf, ln, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
cf = fso.OpenTextFile(configFile, 1);
while (cf.AtEndOfStream !== true) {
ln = cf.ReadLine();
s = new String(ln);
if (s.search(/^m4_define\(\[libmodbus_version_major/) != -1) {
verMajor = s.substr(s.indexOf(",") + 3, 1);
} else if (s.search(/^m4_define\(\[libmodbus_version_minor/) != -1) {
verMinor = s.substr(s.indexOf(",") + 3, 1);
} else if (s.search(/^m4_define\(\[libmodbus_version_micro/) != -1) {
verMicro = s.substr(s.indexOf(",") + 3, 1); //this line
}
}
cf.Close();
}
The text was updated successfully, but these errors were encountered:
yauyimsing
added a commit
to yauyimsing/libmodbus
that referenced
this issue
Jun 9, 2023
Now the version of libmodbus is 3.1.10, but this script generate version 3.1.1
Maybe verMicro = s.substr(s.indexOf(",") + 3, 1); should be modified.
s.substr(s.indexOf(",") + 3, 2) is rude.
I'm not familar with vbs. Who can do this?
The text was updated successfully, but these errors were encountered: