RS 485 protocol

I have tried RS485 protocol on my 2 arduino mega using SoftwareSerial library and it worked pretty good, but when I switched to hardware serial (Serial2 for example) neither of the arduinos receive any data
any thoughts???

Aha!

Can’t do that!

Did you read How To Use This Forum?

/dev:
Aha!

Yep, it’s a’nother case of the missin’ semicolon!

Chuck.