fix handling of limit switch
Merge branch 'master' of github.com:NottingHack/BarBot