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

call of overloaded 'begin(int)' is ambiguous #1

Closed
dhineshkumarmcci opened this issue Feb 16, 2021 · 0 comments
Closed

call of overloaded 'begin(int)' is ambiguous #1

dhineshkumarmcci opened this issue Feb 16, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dhineshkumarmcci
Copy link
Member

Tried to work with soft serial read and write for a custom application. Have received below issue with sketch developed and example sketches.

C:\Users\dhineshkumar\Documents\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:48:12: error: 'PORT_IN_Type' does not name a type
   volatile PORT_IN_Type *_receivePortRegister;
            ^~~~~~~~~~~~
C:\Users\dhineshkumar\Documents\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:50:12: error: 'PORT_OUT_Type' does not name a type
   volatile PORT_OUT_Type *_transmitPortRegister;
            ^~~~~~~~~~~~~
C:\Users\dhineshkumar\Documents\Arduino\libraries\SoftwareSerial\examples\SoftwareSerialExample\SoftwareSerialExample.ino: In function 'void setup()':
SoftwareSerialExample:29:22: error: call of overloaded 'begin(int)' is ambiguous
   mySerial.begin(9600);
                      ^
In file included from C:\Users\dhineshkumar\Documents\Arduino\libraries\SoftwareSerial\examples\SoftwareSerialExample\SoftwareSerialExample.ino:18:0:
C:\Users\dhineshkumar\Documents\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:80:8: note: candidate: void SoftwareSerial::begin(long int)
   void begin(long speed) { this->begin((unsigned long)speed); }
        ^~~~~
C:\Users\dhineshkumar\Documents\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:81:8: note: candidate: void SoftwareSerial::begin(long unsigned int)
   void begin(unsigned long speed);
        ^~~~~
Using library SoftwareSerial at version 2.0.0 in folder: C:\Users\dhineshkumar\Documents\Arduino\libraries\SoftwareSerial 
exit status 1
call of overloaded 'begin(int)' is ambiguous
@dhineshkumarmcci dhineshkumarmcci added the bug Something isn't working label Feb 16, 2021
@dhineshkumarmcci dhineshkumarmcci self-assigned this Feb 16, 2021
terrillmoore added a commit that referenced this issue Sep 6, 2021
Fix #1: remove overloaded 'begin(int)' that is ambiguous
@terrillmoore terrillmoore mentioned this issue Sep 6, 2021
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant