fix the pm error.
modify the bool type to rt_bool_t.