Query should do nothing if empty (#273)
This commit is contained in:
parent
69bf3b1e01
commit
6189d9638d
|
@ -55,7 +55,7 @@ void BleFingerprint::setId(String newId, short int newIdType)
|
||||||
if (!allowQuery)
|
if (!allowQuery)
|
||||||
{
|
{
|
||||||
auto query = _parent->getQuery();
|
auto query = _parent->getQuery();
|
||||||
if (prefixExists(query, newId))
|
if (query.length() > 0 && prefixExists(query, newId))
|
||||||
{
|
{
|
||||||
allowQuery = true;
|
allowQuery = true;
|
||||||
qryAttempts = 0;
|
qryAttempts = 0;
|
||||||
|
|
Loading…
Reference in New Issue