@@ -29,7 +29,7 @@ class File : public Stream {
29
29
SdFile *_file; // underlying file pointer
30
30
31
31
public:
32
- File (SdFile f, char *name); // wraps an underlying SdFile
32
+ File (SdFile f, const char *name); // wraps an underlying SdFile
33
33
File (void ); // 'empty' constructor
34
34
~File (void ); // destructor
35
35
virtual size_t write (uint8_t );
@@ -62,7 +62,7 @@ class SDClass {
62
62
SdFile root;
63
63
64
64
// my quick&dirty iterator, should be replaced
65
- SdFile getParentDir (char *filepath, int *indx);
65
+ SdFile getParentDir (const char *filepath, int *indx);
66
66
public:
67
67
// This needs to be called to set up the connection to the SD card
68
68
// before other methods are used.
@@ -71,7 +71,7 @@ class SDClass {
71
71
// Open the specified file/directory with the supplied mode (e.g. read or
72
72
// write, etc). Returns a File object for interacting with the file.
73
73
// Note that currently only one file can be open at a time.
74
- File open (char *filename, uint8_t mode = FILE_READ);
74
+ File open (const char *filename, uint8_t mode = FILE_READ);
75
75
76
76
// Methods to determine if the requested file path exists.
77
77
boolean exists (char *filepath);
0 commit comments