|
I think you would be better off with 255 - x max 254, unless you guarantee that x is never greater then 254 before that.
This will help to keep from outputing two 255's in a row which will reset the data packet and cause all kinds of interesting things to happen.
|