Fix incorrect boolean check for lat/long == 0.
Change-Id: I85672b455fb884ecac620b4dc38cddd9b4def8cd
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -68,7 +68,7 @@ public class CreateNullDevice extends AbstractShellCommand { | ... | @@ -68,7 +68,7 @@ public class CreateNullDevice extends AbstractShellCommand { |
68 | DeviceId deviceId = sim.nextDeviceId(); | 68 | DeviceId deviceId = sim.nextDeviceId(); |
69 | BasicDeviceConfig cfg = cfgService.addConfig(deviceId, BasicDeviceConfig.class); | 69 | BasicDeviceConfig cfg = cfgService.addConfig(deviceId, BasicDeviceConfig.class); |
70 | cfg.name(name); | 70 | cfg.name(name); |
71 | - if (latitude != 0 && longitude != 0) { | 71 | + if (latitude != 0 || longitude != 0) { |
72 | cfg.latitude(latitude); | 72 | cfg.latitude(latitude); |
73 | cfg.longitude(longitude); | 73 | cfg.longitude(longitude); |
74 | } | 74 | } | ... | ... |
-
Please register or login to post a comment