X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Frdtech-tc%2Fprotocol.c;h=93e479819a15aea4dc36c6023283be6572138688;hb=ea5fc667dc3d8595e8a22e9cc7e83dea06ef0fdf;hp=456681ea49d6e7766db9b972dcd380f70a89a61d;hpb=cae33a58743e408a602771d6924ee8c271326f47;p=libsigrok.git diff --git a/src/hardware/rdtech-tc/protocol.c b/src/hardware/rdtech-tc/protocol.c index 456681ea..93e47981 100644 --- a/src/hardware/rdtech-tc/protocol.c +++ b/src/hardware/rdtech-tc/protocol.c @@ -18,12 +18,14 @@ */ #include -#include -#include -#include + #include -#include #include +#include +#include +#include +#include + #include "libsigrok-internal.h" #include "protocol.h" @@ -71,7 +73,7 @@ static const struct binary_analog_channel rdtech_tc_channels[] = { { "D-", { 64 + 36, BVT_LE_UINT32, 1e-2, }, 2, SR_MQ_VOLTAGE, SR_UNIT_VOLT }, { "E0", { 64 + 12, BVT_LE_UINT32, 1e-3, }, 3, SR_MQ_ENERGY, SR_UNIT_WATT_HOUR }, { "E1", { 64 + 20, BVT_LE_UINT32, 1e-3, }, 3, SR_MQ_ENERGY, SR_UNIT_WATT_HOUR }, - { NULL, }, + ALL_ZERO, }; static int check_pac_crc(uint8_t *data)