You can now do: wmbusmeters --analyze=driver.xmq <hex>

pull/1095/head
Fredrik Öhrström 2023-11-12 13:41:35 +01:00
rodzic 3696118db1
commit 9a99daf0ed
2 zmienionych plików z 12 dodań i 1 usunięć

Wyświetl plik

@ -298,6 +298,16 @@ public:
{
string best_driver = "";
if (only != "")
{
DriverInfo di;
if (!lookupDriverInfo(only, &di))
{
error("No such driver %s\n", only.c_str());
}
only = di.name().str();
}
for (DriverInfo *ndr : allDrivers())
{
string driver_name = toString(*ndr);

Wyświetl plik

@ -195,9 +195,10 @@ string loadDriver(const string &file)
// Check that the driver name has not been registered before!
if (lookupDriver(di.name().str()) != NULL)
{
error("Cannot load driver %s %s since it is already registered!\n",
debug("Ignoring loaded driver %s %s since it is already registered!\n",
di.name().str().c_str(),
file.c_str());
return di.name().str();
}
// Check that no other driver also triggers on the same detection values.