MCPcopy Create free account
hub / github.com/digint/tinyfsm / entry

Method entry

examples/api/multiple_switch.cpp:80–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78{
79 using base = DefectiveSwitch<inum>;
80 void entry() override {
81 DumpState(inum, "OFF", base::on_counter, base::defect_level);
82 };
83 void react(Toggle const &) override {
84 if((rand() % (base::defect_level + 1)) == 0)
85 base::template transit< On<inum> >();

Callers

nothing calls this directly

Calls 1

DumpStateFunction · 0.85

Tested by

no test coverage detected