etl::fsm now reports itself as a consumer of messages.

This commit is contained in:
John Wellbelove 2020-09-25 13:34:28 +01:00
parent 2b162f4e7f
commit 3440c463fa
3 changed files with 5 additions and 2 deletions

View File

@ -386,7 +386,7 @@ namespace etl
//********************************************
bool is_consumer() const ETL_OVERRIDE
{
return false;
return true;
}
private:

View File

@ -398,7 +398,7 @@ namespace etl
//********************************************
bool is_consumer() const ETL_OVERRIDE
{
return false;
return true;
}
private:

View File

@ -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();