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

Class On

examples/api/multiple_switch.cpp:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58//
59template<int inum>
60class On
61: public DefectiveSwitch<inum>
62{
63 // note: base class is not known in dependend template
64 using base = DefectiveSwitch<inum>;
65 void entry() override {
66 base::on_counter++;
67 DumpState(inum, "ON ", base::on_counter, base::defect_level);
68 };
69 void react(Toggle const &) override {
70 base::template transit< Off<inum> >();
71 };
72};
73
74
75template<int inum>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected