aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/database/CommandsManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/CommandsManager.java b/src/org/traccar/database/CommandsManager.java
index ded12e0d2..6eb6d9035 100644
--- a/src/org/traccar/database/CommandsManager.java
+++ b/src/org/traccar/database/CommandsManager.java
@@ -39,7 +39,7 @@ public class CommandsManager extends ExtendedObjectManager<Command> {
}
public boolean checkDeviceCommand(long deviceId, long commandId) {
- return getAllDeviceItems(deviceId).contains(commandId);
+ return !getAllDeviceItems(deviceId).contains(commandId);
}
public void sendCommand(Command command) throws Exception {