Check with your doctor. It sounds like the doctor didn't write XR on the script.
Adderall XR 30 mg. is orange and it is a time release medicine. Where Adderall without the XR you'll get a generic which is a salt compound. It works quick and doesn't last as long.
My daughters take Adderall XR 30mg in the morning and because they are college students and stay up late studying they take Adderall 10mg (which is the salt compound) around 4:00 p.m. They study as late as 1:00 a.m. This allows them to retain the information.
This generic can cause depression and negative thoughts. Double check with the pharmacy first. They could have made a mistake. (this happened to us)
If no mistake was made, check with the doctor. Let the doctor know you can tell the difference and want to take the XR. It doesn't wear off as soon.
One other the thing could be your pharmacy insurance. They require you to take the cheaper one. But this can get a override.
Once the medication has left the pharmacy they WILL NOT take it back. Unless it was their mistake.
Good luck.