Door_Lock var PortB.4if you can find the troublesome code i'd like to have a look at it with the view to seeing why it fails
DmyFlg var bit
Report var byte[8]
Report[2] = !Door_Lock + 48 ' (didn't work! can't remember if it fails with True or false)
The work around was
DmyFlg = Door_Lock
DmyFlg = !DmyFlg
Report[2] = DmyFlg + 48
Sorry, not exactly as I mentioned in my previous post! I should say "bit into byte"
Alberto




Bookmarks