chiark / gitweb /
This is in my opinion a much better way of dealing with SD cards than my previous...
authorBlair Thompson <mail@justblair.co.uk>
Sat, 3 Mar 2012 16:30:31 +0000 (16:30 +0000)
committerBlair Thompson <mail@justblair.co.uk>
Sat, 3 Mar 2012 16:30:31 +0000 (16:30 +0000)
commitf278e1c00f3070130b6cc0d740803414eae01d56
tree7b330bacba477d4314e41428fb65534507e46da1
parent046a8e00395f1458648326b94dfc9019a6803f05
This is in my opinion a much better way of dealing with SD cards than my previous fix.

Instead of adding a momentary switch to fake the insertion of the card I have modified the ultralcd menu item:

Card Menu -> Refresh

to reinitialise the card providing that the SDCARDDETECT pin has been set to -1 in the pins.h file.  This requires one less switch on the front panel and the refresh menu item is in the most relevent place for a user who wishes to inert a card and then print from it.

It also means that the "Card inserted" messages do not bother the users of these card readers (they dont make sense for users without SCCARDDETECT)
Marlin/pins.h
Marlin/ultralcd.pde