Bug fixed

This commit is contained in:
Aleksander Nowakowski 2014-11-21 11:19:07 +01:00
parent 07d661f7cb
commit 8bbaa51e60
1 changed files with 1 additions and 1 deletions

View File

@ -1030,7 +1030,7 @@ public abstract class DfuBaseService extends IntentService {
* In the DFU from SDK 6.1, which was also supporting the buttonless update, there was no DFU Version characteristic. In that case we may find out whether
* we are in the bootloader or application by simply checking the number of characteristics.
*/
if (version == 1 || dfuService.getCharacteristics().size() == 3 /* Generic Access, Generic Attribute, DFU Service */) {
if (version == 1 || dfuService.getCharacteristics().size() > 3 /* Generic Access, Generic Attribute, DFU Service */) {
// the service is connected to the application, not to the bootloader
logi("Application with buttonless update found");
sendLogBroadcast(Level.WARNING, "Application with buttonless update found");