Update uart.c

With Atmega8 the compilation fail 
Merge pull request #2 from Felixls/patch-1

Update uart.c