removing avr register dependency
removing avr register dependency

trying to port existing code to ESP8266.
It does not has UCSR0A register, so it won't compile.

Since Arduino IDE 1.6, Serial.flush() waits data on buffer to be transfered, and that is exactly what is being replaced.

these modifications are not tested yet
smarmengol/Modbus-Master-Slave-for-Arduino