kopia lustrzana https://github.com/weetmuts/wmbusmeters
Improve error reporting for failed registers.
rodzic
15aba2318f
commit
54012a0f30
|
@ -97,9 +97,19 @@ namespace
|
|||
|
||||
if (t->beingAnalyzed() == false)
|
||||
{
|
||||
warning("(apator162) telegram contains a register (%02x) with unknown size.\n"
|
||||
"Please open an issue at https://github.com/wmbusmeters/wmbusmeters/\n"
|
||||
"and report this telegram: %s\n", c, hex.c_str());
|
||||
if (size == -1)
|
||||
{
|
||||
warning("(apator162) telegram contains a register (%02x) with unknown size.\n"
|
||||
"Please open an issue at https://github.com/wmbusmeters/wmbusmeters/\n"
|
||||
"and report this telegram: %s\n", c, hex.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
warning("(apator162) telegram decoding fails since last register (%02x size %d) does not\n"
|
||||
"align with telegram size %zu > %zu.\n"
|
||||
"Please open an issue at https://github.com/wmbusmeters/wmbusmeters/\n"
|
||||
"and report this telegram: %s\n", c, size, i+size, content.size(), hex.c_str());
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -152,7 +162,7 @@ namespace
|
|||
|
||||
case 0x44: return 3;
|
||||
|
||||
case 0x71: return 1+2*8; // ?
|
||||
case 0x71: return 1+2*4; // ?
|
||||
case 0x72: return 1+3*4; // ?
|
||||
case 0x73: return 1+4*4; // Historical data
|
||||
case 0x75: return 1+6*4; // Historical data
|
||||
|
|
Ładowanie…
Reference in New Issue