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

small fixes for latest version #12

Open
supersjimmie opened this issue Aug 27, 2020 · 0 comments
Open

small fixes for latest version #12

supersjimmie opened this issue Aug 27, 2020 · 0 comments

Comments

@supersjimmie
Copy link

supersjimmie commented Aug 27, 2020

Others already mentioned them, but just to combine the required to fix compile errors:

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

      case PLUGIN_WEBFORM_SAVE:
        {
		  strcpy(PLUGIN_145_ExtraSettings.ID1, web_server.arg(F("PLUGIN_145_ID1")).c_str());
		  strcpy(PLUGIN_145_ExtraSettings.ID2, web_server.arg(F("PLUGIN_145_ID2")).c_str());
		  strcpy(PLUGIN_145_ExtraSettings.ID3, web_server.arg(F("PLUGIN_145_ID3")).c_str());
		  SaveCustomTaskSettings(event->TaskIndex, (byte*)&PLUGIN_145_ExtraSettings, sizeof(PLUGIN_145_ExtraSettings));
          	 break;
        }

EDIT:
And in addition, you might have to add the Arduino.h to the CC1101.h file:

#include <Arduino.h>

This prevented a couple of issues like an unknown uint8_t and HIGH.

Making life easier. 👍

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