Query should do nothing if empty (#273)

This commit is contained in:
Darrell 2022-02-14 13:06:44 -05:00 committed by GitHub
parent 69bf3b1e01
commit 6189d9638d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ void BleFingerprint::setId(String newId, short int newIdType)
if (!allowQuery)
{
auto query = _parent->getQuery();
if (prefixExists(query, newId))
if (query.length() > 0 && prefixExists(query, newId))
{
allowQuery = true;
qryAttempts = 0;