Welcome! Log In Create A New Profile

Advanced

compile error when running sanguino test firmware

Posted by letsburn00 
compile error when running sanguino test firmware
February 04, 2009 08:28PM
Using the sanguino machine test I keep getting a compile error when I try to run to the firmware. I can get the comms test to work fine (it echo's stuff back to me) But when I try to run the machine test, the compiler gets the the section

if (Serial.available() > 0)
{
c = Serial.read();
Serial.println(c);
}


The error says "c is not declared in thie scope"

I tried adding an "int c" in the loop on the advice of a friend, but this just gives me an initialisation error. Any ideas on a solution?

PS. I also can't get my host software to talk to my machine, I've hooked up the extruder and tried to run it through the host but to no avail. I'm trying to run tests to figure out why this is happening, I've set my port to com4, which is the channel my arduino software can talk to it on, but that has no difference.
Re: compile error when running sanguino test firmware
February 05, 2009 08:52AM
Don't know where it was defined but "c" could be eliminated by:

if (Serial.available() > 0)
{
Serial.println(Serial.read());
}
Sorry, only registered users may post in this forum.

Click here to login