fix: Incorrect MPM module status (#4198)

This commit is contained in:
Raphael Coeffic
2023-10-15 16:27:38 +10:00
committed by GitHub
parent b22a1b5d32
commit ee9d50dca4
5 changed files with 21 additions and 2 deletions
+8
View File
@@ -319,3 +319,11 @@ int8_t modulePortGetModuleForPort(uint8_t port)
return -1;
}
bool modulePortHasRx(uint8_t module)
{
auto mod_st = modulePortGetState(module);
if (!mod_st) return false;
return mod_st && mod_st->rx.port;
}