MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / add

Method add

libraries/Multiplex/Multiplex.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38bool Multiplex::add(Print * stream)
39{
40 if (_count >= _size) return false;
41 if (index(stream) != 0xFF) return false;
42
43 _enabled[_count] = true;
44 _stream[_count++] = stream;
45 return true;
46};
47
48
49bool Multiplex::remove(Print * stream)

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36