MCPcopy Create free account
hub / github.com/MCUdude/MiniCore / subtract_cap

Method subtract_cap

avr/libraries/SoftwareSerial/src/SoftwareSerial.cpp:303–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303uint16_t SoftwareSerial::subtract_cap(uint16_t num, uint16_t sub) {
304 if (num > sub)
305 return num - sub;
306 else
307 return 1;
308}
309
310//
311// Public methods

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected