X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Frdtech-um%2Fprotocol.c;h=04de768713ac04d2d6c039454e1b7982610466cb;hp=25bad0dfc95ec7356fb5993aa5beb6301cfb38eb;hb=0988d4ae2d7a47258b1ec3278381a973aa12831e;hpb=d65f51bf5c549e5dbacb5c6fb6636e482ff02da8 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)