Skip to content

Commit

Permalink
Merge pull request #10 from Abandon-ht/dev
Browse files Browse the repository at this point in the history
fix the check version bug.
  • Loading branch information
Forairaaaaa authored Dec 10, 2024
2 parents 0cff2c1 + c5f2896 commit 8a2d72f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/M5ModuleLLM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ bool M5ModuleLLM::begin(Stream* serialPort)

bool M5ModuleLLM::checkConnection()
{
llm_version = (sys.version() == MODULE_LLM_OK);
return sys.ping() == MODULE_LLM_OK;
const bool result = (sys.ping() == MODULE_LLM_OK);
llm_version = (sys.version() == MODULE_LLM_OK);
return result;
}

void M5ModuleLLM::update()
Expand Down

0 comments on commit 8a2d72f

Please sign in to comment.