fixed some bugs in temp measurement and lin interrupt init