Power problems

I uploaded code that had a while loop in it that toggled the led on pin 13 until something happened. Apparently, that was a bad idea, because the Arduino Uno started behaving very weirdly. I decided that I didn't need to use pin 13 or the while loop, so I removed the line in my program. However, the Arduino caused the computer to crash once while I was trying to upload the program. The computer is fine (I wrote this forum post) and the new program is uploaded, but some weird stuff is happening.

The power led on the Arduino appears to be pulsing when it is plugged into my computer, which I don't think is normal. It does not pulse when hooked up to a 9V battery. I have a Sparkfun XBee shield with an XBee Pro Series 1 hooked up to the Arduino - it was working fine before, but now the power led on the shield is dim and it doesn't seem to be doing much. I also have a MPU6050 hooked up to the Arduino, and it seems to be functioning normally. This setup has worked countless times before - is it possible that I damaged the Sparkfun shield?

Any help is much appreciated - I'm really in the dark here.

I'm really in the dark here

You're not the only one, but you at least have the power to enlighten us.

I think this may be a problem with the XBee itself, so I'm going to try recovery with XCTU.