Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mchr3k committed Mar 14, 2012
1 parent 998533f commit 16445a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wsn_arduino/wsn_arduino.ino
Expand Up @@ -8,12 +8,12 @@
#define WsnPrint(x) WSNSerialPrint_P(PSTR(x))
#define WsnPrintln(x) WSNSerialPrintln_P(PSTR(x))

static NOINLINE void WSNSerialPrint_P(PGM_P str)
static void WSNSerialPrint_P(PGM_P str)
{
for (uint8_t c; (c = pgm_read_byte(str)); str++) Serial.write(c);
}

static NOINLINE void WSNSerialPrintln_P(PGM_P str)
static void WSNSerialPrintln_P(PGM_P str)
{
WSNSerialPrint_P(str);
Serial.println();
Expand Down Expand Up @@ -297,7 +297,7 @@ void deleteFiles(SdBaseFile* root)
j++;
}

if (!file.open(dir, name, O_WRITE)) return;
if (!file.open(root, name, O_WRITE)) return;
if (!file.remove()) error("file.remove failed");
}
}
Expand Down

0 comments on commit 16445a3

Please sign in to comment.