Skip to content
  • Alessandro Rubini's avatar
    wr-servo: simplify the code · b926df56
    Alessandro Rubini authored
    
    
    This simplifies the wr-servo state machine by factorizing out some
    things, removing some conditionals and using the state strings array
    instead of several strcpy.
    
    As a side effect, it requires less iterations when the offset is
    less than one second, and it reports more correctly the current status
    to diagnostics and wr_mon.
    
    Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
    b926df56