summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
6c70147)
This is commented out so far, will be implemented properly soon.
/* Parse the protocol packet. */
if ((ret = sr_dmm_parse_fs9922(buf, &floatval, &analog)) != SR_OK) {
/* Parse the protocol packet. */
if ((ret = sr_dmm_parse_fs9922(buf, &floatval, &analog)) != SR_OK) {
+ // if ((ret = sr_dmm_parse_fs9721(buf, &floatval, &analog)) != SR_OK) {
sr_err("Invalid DMM packet, ignoring.");
return;
}
sr_err("Invalid DMM packet, ignoring.");
return;
}
if (!synced_on_first_packet) {
/* Valid packets start with '+' or '-'. */
if ((buf[1] != '+') && buf[1] != '-')
if (!synced_on_first_packet) {
/* Valid packets start with '+' or '-'. */
if ((buf[1] != '+') && buf[1] != '-')
+ // if ((buf[1] & 0xf0) != 0x10)
return TRUE;
synced_on_first_packet = TRUE;
sr_spew("Successfully synchronized on first packet.");
return TRUE;
synced_on_first_packet = TRUE;
sr_spew("Successfully synchronized on first packet.");