Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
For running the script just once option: exit(); didn't compile in the
arduino IDE, so it was replaced with an indefinite loop.
  • Loading branch information
CedArctic committed Apr 24, 2017
1 parent 64ccbfa commit 666a5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion digiQuack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ int main(){
cin >> counter;

if(counter){
fileout << "exit();";
fileout << "for(;;){ /*empty*/ }";
}

//Close converted script txt fstream
Expand Down

1 comment on commit 666a5d7

@laughingcypher
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.delay(3000);
DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT,KEY_R);
DigiKeyboard.delay(500);
DigiKeyboard.print(F("notepad"));
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(750);
DigiKeyboard.print(("Hello World!!!"));
DigiKeyboard.sendKeyStroke(KEY_ENTER);
for(;;){ /empty/ }

exit status 1
'DigiKeyboard' does not name a type

why this error is showing

Please sign in to comment.