just checked th sreg()...
I'm not sure does the enumval set the error properly at all.
it migh just be that only way to check if avail is length, not sure though...

that was problem in some build a long time ago, not sure if anymore.
_________________________
!

download KiXnet