MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / onDisconnect

Method onDisconnect

lib/hidapi/testgui/test.cpp:265–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265long
266MainWindow::onDisconnect(FXObject *sender, FXSelector sel, void *ptr)
267{
268 hid_close(connected_device);
269 connected_device = NULL;
270 connected_label->setText("Disconnected");
271 output_button->disable();
272 feature_button->disable();
273 get_feature_button->disable();
274 connect_button->enable();
275 disconnect_button->disable();
276
277 getApp()->removeTimeout(this, ID_TIMER);
278
279 return 1;
280}
281
282long
283MainWindow::onRescan(FXObject *sender, FXSelector sel, void *ptr)

Callers

nothing calls this directly

Calls 1

hid_closeFunction · 0.50

Tested by

no test coverage detected