Help!! I'm scared

Has anyone taken rolaides for heartburn during pregnancy? My heartburn was so bad the other day and it has been to hot to walk to a store that sells tums. So I took 2 rolaides but I'm scared that I might have hurt my baby. I'm 16 weeks and 3 days. I don't have an appointment until August 8th. I'm just so worried I might have done something I shouldn't have.