restore while(1) loop
Data_Thread - if-elseif-else replaced by swith case break