Created
February 25, 2016 07:55
-
-
Save netmaniac/cbff2b5e6476f52a9d7c to your computer and use it in GitHub Desktop.
Problem with error 'void value not ignored as it ought to be' in Arduino IDE 1.6.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/viciu/akd-sketchbook/not_ignored_void/tab2.ino: In function 'void setup()': | |
tab2:3: error: void value not ignored as it ought to be | |
Serial.println("2+2=4"); | |
^ | |
exit status 1 | |
void value not ignored as it ought to be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(9600); | |
int val = add_two(); | |
Serial.println(val); | |
} | |
void loop() { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void add_two() { | |
Serial.println("2+2=4"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment