• Alessandro Rubini's avatar
    audit: msg.c: cleanup pack functions · ed3107cb
    Alessandro Rubini authored
    This commit assumes that "transportSpefic" in header byte 0 and
    "reserved" in header byte 1 are always 0.  Thus, it removes unneeded
    bitmasking and while at it uses names for message types.  It also
    removes redundant assignments and adds a few missing ones.
    
    The commit simplifies all the "pack" functions; it makes them
    consistent by setting all header fields in transmit order, and marking
    unclean spots (i.e. correctionField assignment).
    
    Buglets fixed in the process;
      - correctionField was not cleared in follow_up
      - pdelay_resp_f_up was using the wrong length name
      - pdelay_resp_f_up was not setting controlField and logMessageInterval
      - delay_req was not clearing flags
      - pdelay_req was not blanking the trailing bytes
      - pdelay_resp was not setting controlField and logMessageInterval
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    ed3107cb
Name
Last commit
Last update
..
Makefile Loading commit data...
arith.c Loading commit data...
bmc.c Loading commit data...
common-fun.c Loading commit data...
common-fun.h Loading commit data...
fsm-lib.c Loading commit data...
fsm-table.c Loading commit data...
hooks.c Loading commit data...
msg.c Loading commit data...
open-close.c Loading commit data...
servo.c Loading commit data...
state-disabled.c Loading commit data...
state-faulty.c Loading commit data...
state-initializing.c Loading commit data...
state-listening.c Loading commit data...
state-master.c Loading commit data...
state-passive.c Loading commit data...
state-slave.c Loading commit data...
state-uncalibrated.c Loading commit data...