fixed some problem in RC100 library

Thanks to hhgyu