X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Frdtech-um%2Fprotocol.c;h=04de768713ac04d2d6c039454e1b7982610466cb;hb=821266e8ed4116e08f2a64561cc570c47b5a4b40;hp=25bad0dfc95ec7356fb5993aa5beb6301cfb38eb;hpb=8b607a24e7e7dec8b65963281b9cb43a0c5ba0a6;p=libsigrok.git diff --git a/src/hardware/rdtech-um/protocol.c b/src/hardware/rdtech-um/protocol.c index 25bad0df..04de7687 100644 --- a/src/hardware/rdtech-um/protocol.c +++ b/src/hardware/rdtech-um/protocol.c @@ -42,7 +42,7 @@ static const struct binary_analog_channel rdtech_default_channels[] = { { "T", { 10, BVT_BE_UINT16, 1.0, }, 0, SR_MQ_TEMPERATURE, SR_UNIT_CELSIUS }, /* Threshold-based recording (mWh) */ { "E", { 106, BVT_BE_UINT32, 0.001, }, 3, SR_MQ_ENERGY, SR_UNIT_WATT_HOUR }, - { NULL, }, + ALL_ZERO, }; static const struct binary_analog_channel rdtech_um25c_channels[] = { @@ -53,7 +53,7 @@ static const struct binary_analog_channel rdtech_um25c_channels[] = { { "T", { 10, BVT_BE_UINT16, 1.0, }, 0, SR_MQ_TEMPERATURE, SR_UNIT_CELSIUS }, /* Threshold-based recording (mWh) */ { "E", { 106, BVT_BE_UINT32, 0.001, }, 3, SR_MQ_ENERGY, SR_UNIT_WATT_HOUR }, - { NULL, }, + ALL_ZERO, }; static int poll_csum_fff1(char buf[], int len)