Prevent proto list to be fetched when started in anything but "normal" mode

This commit is contained in:
Raphael Coeffic
2021-09-17 11:15:33 +02:00
parent 4d71f04dbe
commit c2588efbca
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -205,7 +205,9 @@ void MultiRfProtocols::fillList(std::function<void(const RfProto&)> addProto) co
bool MultiRfProtocols::triggerScan()
{
if (scanState == ScanStop) {
if (scanState == ScanStop
&& moduleState[moduleIdx].mode == MODULE_MODE_NORMAL) {
proto2idx.clear();
protoList.clear();
scanState = ScanBegin;