OK so i just bought a brand new 2014 wrx premium hatchback 3 months ago, today i was taking my son for a drive and when I got on the highway I punched the gas because my kid likes to go fast. When I was shifting from 2nd to 3rd right at red line my check engine light came on and it was solid, and I noticed that the cruise light was blinking also. So i drove it back home without going over 3000 rpm because I wasnt sure what had just happened. So I get home and immediately plugged in my obd ii reader and got the code P0346 which seems to be the camshaft position sensor. I am not that much of mechanic, just simple weekend warrior stuff. So I tried to find more on the internet in forums such as this to see if it was just a sensor throwing a bad code, some sites said a change in weather can cause it to throw a code? I have no idea, and I am not sure if i want to clear the code yet, just in case the dealer ship needs to read the logged ecu data. It seems to be running and idling fine but I have not tried going above 3000rpms until I know what I should do next. Also it is still under warranty obviously, so maybe I should just bring it to the dealer, but if clearing the code fixes it then I can do that myself.