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

Doesn't compile for Teensy 3.2 (release 3.0.2) #87

Closed
ssilverman opened this issue Feb 26, 2019 · 6 comments
Closed

Doesn't compile for Teensy 3.2 (release 3.0.2) #87

ssilverman opened this issue Feb 26, 2019 · 6 comments

Comments

@ssilverman
Copy link
Contributor

The error message:

src/ArduinoUnitUtility/ArduinoUnitMockPrint.cpp:136:95: error: no matching function for call to 'MockPrint::concat(const char*, size_t&)'

@ssilverman ssilverman changed the title Doesn't compile for Teensy 3.2 Doesn't compile for Teensy 3.2 (release 3.0.2) Feb 26, 2019
@ssilverman
Copy link
Contributor Author

My fix in ArduinoUnitMockPrint.cpp:

size_t MockPrint::write(const uint8_t *buffer, size_t size) {
#ifdef TEENSYDUINO
  append((const char *)buffer, size);
#else
  concat((const char *)buffer, size);
#endif
  return size;
}

@wmacevoy
Copy link
Collaborator

wmacevoy commented Mar 6, 2019

Sorry took a bit to think about what this was doing. Can you make a Pull Request & I will encorporate your change?

@ssilverman
Copy link
Contributor Author

#88

@dogweather
Copy link

@wmacevoy Thanks for merging this! Would you consider cutting a new release so we can use it easily in the Arduino IDE?

@wmacevoy
Copy link
Collaborator

3.0.3+ has the merge.

@dogweather
Copy link

Excellent - thank you!

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

3 participants