X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Ftesto%2Fprotocol.c;fp=src%2Fhardware%2Ftesto%2Fprotocol.c;h=92bb286e1c1ca71d7dab29766918118e2369e4a6;hb=b0e1a1ecc4be698fb2cd48179ee48cf41e8f7f52;hp=396612fdc3a479377ae05e3ac7a529046486abdf;hpb=fbbafc6909a4c3d75f77f1c770ef2e8aaab1b306;p=libsigrok.git diff --git a/src/hardware/testo/protocol.c b/src/hardware/testo/protocol.c index 396612fd..92bb286e 100644 --- a/src/hardware/testo/protocol.c +++ b/src/hardware/testo/protocol.c @@ -170,8 +170,8 @@ SR_PRIV int testo_request_packet(const struct sr_dev_inst *sdi) * Testo 175/177/400/650/950/435/635/735/445/645/945/946/545. */ SR_PRIV gboolean testo_check_packet_prefix(unsigned char *buf, int len) { + static const unsigned char check[] = { 0x21, 0, 0, 0, 1 }; int i; - unsigned char check[] = { 0x21, 0, 0, 0, 1 }; if (len < 5) return FALSE;