Update idle.c

code cleaned