hostmot2: handle a 'bit' pin with  a value other than 0 or 1
hostmot2: handle a 'bit' pin with  a value other than 0 or 1

C doesn't have a true 'bool' type, so it's possible for the value of a 'bit'
pin to be other than 0 or 1.  Therefore, using the value in a construct like
    port |= (*pin) << shift
won't necessarily set the desired bit in port.

bmwiedemann/linuxcnc-mirror,ikcalB/linuxcnc-mirror,aschiffler/linuxcnc,ArcEye/MK-Qt5,aschiffler/linuxcnc,mhaberler/machinekit,Cid427/machinekit,unseenlaser/machinekit,ArcEye/machinekit-testing,ianmcmahon/linuxcnc-mirror,aschiffler/linuxcnc,cdsteinkuehler/MachineKit,ArcEye/machinekit-testing,bmwiedemann/linuxcnc-mirror,kinsamanka/machinekit,araisrobo/linuxcnc,cdsteinkuehler/linuxcnc,ikcalB/linuxcnc-mirror,jaguarcat79/ILC-with-LinuxCNC,bobvanderlinden/machinekit,ArcEye/machinekit-testing,aschiffler/linuxcnc,cdsteinkuehler/MachineKit,jaguarcat79/ILC-with-LinuxCNC,kinsamanka/machinekit,cnc-club/linuxcnc,cdsteinkuehler/MachineKit,bobvanderlinden/machinekit,narogon/linuxcnc,Cid427/machinekit,kinsamanka/machinekit,Cid427/machinekit,cdsteinkuehler/linuxcnc,strahlex/machinekit,mhaberler/machinekit,Cid427/machinekit,narogon/linuxcnc,ianmcmahon/linuxcnc-mirror,araisrobo/machinekit,kinsamanka/machinekit,ArcEye/MK-Qt5,RunningLight/machinekit,ikcalB/linuxcnc-mirror,ianmcmahon/linuxcnc-mirror,cdsteinkuehler/MachineKit,kinsamanka/machinekit,mhaberler/machinekit,cnc-club/linuxcnc,cdsteinkuehler/linuxcnc,RunningLight/machinekit,narogon/linuxcnc,EqAfrica/machinekit,araisrobo/machinekit,EqAfrica/machinekit,strahlex/machinekit,araisrobo/linuxcnc,bobvanderlinden/machinekit,bobvanderlinden/machinekit,ArcEye/machinekit-testing,cnc-club/linuxcnc,EqAfrica/machinekit,RunningLight/machinekit,cnc-club/linuxcnc,Cid427/machinekit,RunningLight/machinekit,Cid427/machinekit,ikcalB/linuxcnc-mirror,EqAfrica/machinekit,EqAfrica/machinekit,unseenlaser/machinekit,cnc-club/linuxcnc,araisrobo/machinekit,mhaberler/machinekit,ianmcmahon/linuxcnc-mirror,bmwiedemann/linuxcnc-mirror,narogon/linuxcnc,ArcEye/MK-Qt5,cdsteinkuehler/linuxcnc,strahlex/machinekit,araisrobo/linuxcnc,ArcEye/machinekit-testing,ianmcmahon/linuxcnc-mirror,aschiffler/linuxcnc,bobvanderlinden/machinekit,unseenlaser/machinekit,bmwiedemann/linuxcnc-mirror,bobvanderlinden/machinekit,jaguarcat79/ILC-with-LinuxCNC,narogon/linuxcnc,unseenlaser/linuxcnc,ArcEye/MK-Qt5,mhaberler/machinekit,EqAfrica/machinekit,araisrobo/machinekit,unseenlaser/linuxcnc,mhaberler/machinekit,Cid427/machinekit,unseenlaser/machinekit,ArcEye/MK-Qt5,araisrobo/machinekit,EqAfrica/machinekit,bmwiedemann/linuxcnc-mirror,unseenlaser/linuxcnc,cdsteinkuehler/MachineKit,ArcEye/MK-Qt5,araisrobo/machinekit,bmwiedemann/linuxcnc-mirror,cdsteinkuehler/linuxcnc,ianmcmahon/linuxcnc-mirror,jaguarcat79/ILC-with-LinuxCNC,unseenlaser/machinekit,strahlex/machinekit,cdsteinkuehler/MachineKit,ArcEye/machinekit-testing,RunningLight/machinekit,araisrobo/machinekit,araisrobo/machinekit,araisrobo/machinekit,kinsamanka/machinekit,unseenlaser/machinekit,strahlex/machinekit,unseenlaser/machinekit,unseenlaser/linuxcnc,bobvanderlinden/machinekit,strahlex/machinekit,mhaberler/machinekit,ArcEye/MK-Qt5,RunningLight/machinekit,kinsamanka/machinekit,ArcEye/machinekit-testing,bmwiedemann/linuxcnc-mirror,unseenlaser/linuxcnc,EqAfrica/machinekit,ikcalB/linuxcnc-mirror,ikcalB/linuxcnc-mirror,strahlex/machinekit,kinsamanka/machinekit,cnc-club/linuxcnc,ianmcmahon/linuxcnc-mirror,ikcalB/linuxcnc-mirror,cdsteinkuehler/linuxcnc,jaguarcat79/ILC-with-LinuxCNC,RunningLight/machinekit,unseenlaser/machinekit,ArcEye/machinekit-testing,bobvanderlinden/machinekit,araisrobo/linuxcnc,cnc-club/linuxcnc,araisrobo/linuxcnc,ArcEye/MK-Qt5,Cid427/machinekit,RunningLight/machinekit,mhaberler/machinekit