Skip to content

Commit

Permalink
apparently the serial.begin cannot be called in the consctructor
Browse files Browse the repository at this point in the history
  • Loading branch information
rambo committed Jun 28, 2013
1 parent a95a353 commit dcc1bfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion software/arduino/partyhatwork/brain_tasks.h
Expand Up @@ -100,7 +100,6 @@ class EEGReader : public Task
EEGReader::EEGReader()
: Task()
{
BRAIN_SERIAL.begin(57600);
}

bool EEGReader::canRun(uint32_t now)
Expand Down
5 changes: 5 additions & 0 deletions software/arduino/partyhatwork/partyhatwork.ino
Expand Up @@ -155,6 +155,11 @@ void setup()
XBEE_SERIAL.begin(57600);
xbee.begin(XBEE_SERIAL);

#ifdef BRAIN_SERIAL
BRAIN_SERIAL.begin(57600);
#endif


#ifdef SLEEP_DEBUG_PIN
pinMode(SLEEP_DEBUG_PIN, OUTPUT);
// We keep the pin high whenever the sketch is running
Expand Down

0 comments on commit dcc1bfd

Please sign in to comment.