arduino/Arduino — pull request #1118 by fakufaku (2012-11-17 15:27:23+00:00)
Title: Patch SD library to allow re-initialization after power down

This is a patch of the SD library to allow the SD card to be re-initialized after having been powered off.

This patch fixes issue [1103](http://code.google.com/p/arduino/issues/detail?id=1103&start=400).

The problem was that the root directory is still marked as open and thus its initialization fails. The fix changes SD.init to first check if the root dir is open, and if so, closes it.