1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-10 00:46:09 +01:00
Commit Graph

11 Commits

Author SHA1 Message Date
Chris--A
36f320b6d5 Added String handling to SD class 2015-05-20 22:02:09 +10:00
squelched
1c25d2432f SD: allow multiple SD instances
The SDClass class makes a reference to "SD.card" instead of just "card". SD is a global instance of SDClass.
This prevents any other instance of SDClass from functioning correctly.
The fix also allows SDClass to be used with an SD card which is removed and replaced, whereas previously, using the global instance SD did not allow this due to the limitation of begin() which cannot be called more than once.
2015-04-27 11:53:02 +02:00
Martino Facchin
a6be90f983 SD: avoid timeout lock if millis() approaches 2^16
this is a rework of @Timmmm 's PR #1977
2015-03-23 15:28:19 +01:00
PaulStoffregen
c0bc2d22f6 Fix SPI transaction mismatch errors 2014-11-20 18:54:04 -08:00
PaulStoffregen
f7a565de1a Use SPI transactions and SPISettings in SD library 2014-08-01 12:19:51 -07:00
JC Wren
12b706551d SD.c: Fix error in comment for remove()
Comment was duplicated from mkdir() and not updated.
2014-02-19 16:09:30 +01:00
J.C. Wren
a991f26b8d Sd2Card.cpp: fix compiler warning
All the while() loops that check for the SPI transfer to be complete have the
semi-colon immediately after the closing parenthesis.  This both causes a
compiler warning of "warning: suggest a space before ';' or explicit braces
around empty body in 'while' statement", and is considered a less-than-ideal
programming practice.  This patch breaks the semi-colon on to the next line,
both eliminating the compiler error and making the code more readable.

In all probability the test should be moved into a macro or a inlineable
sub-routine.
2014-02-19 16:09:30 +01:00
Federico Fissore
88f7504e81 Removed destructor from File.cpp and SD.h as it leads to unexpected close/destructed objects #814 2013-10-15 17:09:20 +02:00
Federico Fissore
bef7b94ea7 merge 2013-10-14 12:42:42 +02:00
Fede85
b28104b795 Audio library to the new format 2013-06-27 19:15:53 +02:00
Fede85
9454816162 Ethernet, SD and LiquidCrystal to the new library format 2013-06-26 19:13:04 +02:00