Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable SerialOut #422

Closed
schwos opened this issue Aug 15, 2023 · 1 comment
Closed

Disable SerialOut #422

schwos opened this issue Aug 15, 2023 · 1 comment

Comments

@schwos
Copy link

schwos commented Aug 15, 2023

I have disable SerialIn but want to disable SerialOut and anytime I remove SERIAL_OUT(Serial) from the MENU_OUTPUTS but I end up with compiler errors as below. If I put the Serial_OUT back the error disappear and it compiles. What am I missing?

error: expected constructor, destructor, or type conversion before '(' token
#define CALL__(a,b,...) a##_##b(VA_ARGS<

------------------------------------Snippet of Code Below---------------------------------

`#define MAX_DEPTH 2

//serialIn serial(Serial);
chainStream<0> in(NULL);
//MENU_INPUTS(in,&serial);
//MENU_INPUTS(in, NULL);

// MENU_INPUTS(in,&encStream,&encButton);//,&serial);

MENU_OUTPUTS(out,MAX_DEPTH
,U8G2_OUT(u8g2,colors,fontX,fontY,offsetX,offsetY,{0,0,U8_Width/fontX,U8_Height/fontY})
//,SERIAL_OUT(Serial)
);

NAVROOT(nav,mainMenu,MAX_DEPTH,in,out);`

@schwos
Copy link
Author

schwos commented Aug 15, 2023

Nevermind, I figured it out needed to read the Wiki in a bit more detail..

MENU_OUTPUTS(out,MAX_DEPTH
,U8G2_OUT(u8g2,colors,fontX,fontY,offsetX,offsetY,{0,0,U8_Width/fontX,U8_Height/fontY})
//, SERIAL_OUT(Serial)
, NONE //<- Must has two items in the Macro but to have one output use NONE
);

@schwos schwos closed this as completed Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant