fixed getOrInitSwInfo

This commit is contained in:
YevhenBondarenko 2021-07-16 18:50:00 +03:00
parent 39ff7af478
commit 621752cb7a

View File

@ -552,7 +552,7 @@ public class DefaultLwM2MOtaUpdateService extends LwM2MExecutorAwareService impl
if (info == null) { if (info == null) {
var profile = clientContext.getProfile(client.getProfileId()); var profile = clientContext.getProfile(client.getProfileId());
info = new LwM2MClientSwOtaInfo(endpoint, profile.getClientLwM2mSettings().getSwUpdateResource(), info = new LwM2MClientSwOtaInfo(endpoint, profile.getClientLwM2mSettings().getSwUpdateResource(),
LwM2MSoftwareUpdateStrategy.fromStrategySwByCode(profile.getClientLwM2mSettings().getFwUpdateStrategy())); LwM2MSoftwareUpdateStrategy.fromStrategySwByCode(profile.getClientLwM2mSettings().getSwUpdateStrategy()));
update(info); update(info);
} }
return info; return info;