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

_P145_Itho:314:53: error: too many arguments to function 'void addFormSubHeader(const String&)' #9

Open
RPJacobs opened this issue Sep 9, 2019 · 0 comments

Comments

@RPJacobs
Copy link

RPJacobs commented Sep 9, 2019

With arduino 1.8.9 you will get an error:

ESPEasy_P145_Itho.ino: In function 'boolean Plugin_145(byte, EventStruct*, String&)':

_P145_Itho:314:53: error: too many arguments to function 'void addFormSubHeader(const String&)'

 addFormSubHeader(string, F("Remote RF Controls"));

Can be solved by removing "string, F()" and just use the string:

` break; }

  case PLUGIN_WEBFORM_LOAD:
    {
	  addFormSubHeader(string, F("Remote RF Controls"));
      addFormTextBox(string, F("Unit ID remote 1"), F("PLUGIN_145_ID1"), PLUGIN_145_ExtraSettings.ID1, 23);
      addFormTextBox(string, F("Unit ID remote 2"), F("PLUGIN_145_ID2"), PLUGIN_145_ExtraSettings.ID2, 23);
      addFormTextBox(string, F("Unit ID remote 3"), F("PLUGIN_145_ID3"), PLUGIN_145_ExtraSettings.ID3, 23);
      success = true;
      break;
    }`

into:

case PLUGIN_WEBFORM_LOAD: { addFormSubHeader("Remote RF Controls"); addFormTextBox("Unit ID remote 1", F("PLUGIN_145_ID1"), PLUGIN_145_ExtraSettings.ID1, 23); addFormTextBox("Unit ID remote 2", F("PLUGIN_145_ID2"), PLUGIN_145_ExtraSettings.ID2, 23); addFormTextBox("Unit ID remote 3", F("PLUGIN_145_ID3"), PLUGIN_145_ExtraSettings.ID3, 23); success = true; break; }

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