MCPcopy Create free account
hub / github.com/BruceDevices/firmware / begin

Method begin

src/modules/others/u2f.cpp:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 U2fHidDevice() : _hid(HID_ITF_PROTOCOL_NONE) { USBHID::addDevice(this, sizeof(U2F_REPORT_DESCRIPTOR)); }
131
132 void begin() {
133 if (_started) return;
134 USB.begin();
135 _hid.begin();
136 uint32_t t0 = millis();
137 while (!_hid.ready() && (millis() - t0) < 4000) delay(10);
138 loadState();
139 _started = true;
140 }
141
142 void end() {
143 if (!_started) return;

Callers 14

initClickerUSBFunction · 0.45
audioPlaybackTaskFunction · 0.45
playAudioFileFunction · 0.45
playAudioRTTTLStringFunction · 0.45
ttsFunction · 0.45
playToneFunction · 0.45
loadStateMethod · 0.45
getCredentialFsMethod · 0.45
handleRegisterMethod · 0.45
handleCborMethod · 0.45

Calls 2

millisFunction · 0.85
readyMethod · 0.80

Tested by

no test coverage detected