mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
etl::fsm now reports itself as a consumer of messages.
This commit is contained in:
parent
2b162f4e7f
commit
3440c463fa
@ -386,7 +386,7 @@ namespace etl
|
||||
//********************************************
|
||||
bool is_consumer() const ETL_OVERRIDE
|
||||
{
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@ -398,7 +398,7 @@ namespace etl
|
||||
//********************************************
|
||||
bool is_consumer() const ETL_OVERRIDE
|
||||
{
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@ -338,6 +338,9 @@ namespace
|
||||
{
|
||||
etl::null_message_router nmr;
|
||||
|
||||
CHECK(motorControl.is_producer());
|
||||
CHECK(motorControl.is_consumer());
|
||||
|
||||
motorControl.Initialise(stateList, etl::size(stateList));
|
||||
motorControl.reset();
|
||||
motorControl.ClearStatistics();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user