Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MAKERphone.cpp #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/MAKERphone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4757,7 +4757,7 @@ void MAKERphone::writeFile(const char *path, const char *message)
;
Serial.printf("Writing file: %s\n", path);

File file = SD.open(path);
File file = SD.open(path, FILE_WRITE);
if (!file)
{
Serial.println("Failed to open file for writing");
Expand All @@ -4777,7 +4777,7 @@ void MAKERphone::appendFile(const char *path, const char *message)
{
Serial.printf("Appending to file: %s\n", path);

File file = SD.open(path);
File file = SD.open(path, FILE_APPEND);
if (!file)
{
Serial.println("Failed to open file for appending");
Expand All @@ -4801,7 +4801,7 @@ String MAKERphone::readFile(const char *path)
;
Serial.printf("Reading file: %s\n", path);
String helper = "";
File file = SD.open(path);
File file = SD.open(path, FILE_READ);
if (!file)
{
Serial.println("Failed to open file for reading");
Expand Down