kopia lustrzana https://github.com/weetmuts/wmbusmeters
You can now do: wmbusmeters --analyze=driver.xmq <hex>
rodzic
3696118db1
commit
9a99daf0ed
|
@ -298,6 +298,16 @@ public:
|
||||||
{
|
{
|
||||||
string best_driver = "";
|
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())
|
for (DriverInfo *ndr : allDrivers())
|
||||||
{
|
{
|
||||||
string driver_name = toString(*ndr);
|
string driver_name = toString(*ndr);
|
||||||
|
|
|
@ -195,9 +195,10 @@ string loadDriver(const string &file)
|
||||||
// Check that the driver name has not been registered before!
|
// Check that the driver name has not been registered before!
|
||||||
if (lookupDriver(di.name().str()) != NULL)
|
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(),
|
di.name().str().c_str(),
|
||||||
file.c_str());
|
file.c_str());
|
||||||
|
return di.name().str();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check that no other driver also triggers on the same detection values.
|
// Check that no other driver also triggers on the same detection values.
|
||||||
|
|
Ładowanie…
Reference in New Issue