0xFF indicates error