From ebb46602071ef9491653875e94b6b13db737d2a4 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 7 Jun 2017 02:11:54 +0800 Subject: [PATCH] coredevice: compare software and gateware versions strictly --- artiq/coredevice/comm_kernel.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/artiq/coredevice/comm_kernel.py b/artiq/coredevice/comm_kernel.py index 45f217bdd..c197c5c3a 100644 --- a/artiq/coredevice/comm_kernel.py +++ b/artiq/coredevice/comm_kernel.py @@ -284,9 +284,7 @@ class CommKernel: .format(runtime_id)) gateware_version = self._read_string() - gateware_release = gateware_version.split("+")[0] - software_release = software_version.split("+")[0] - if gateware_release != software_release: + if gateware_version != software_version: logger.warning("Mismatch between gateware (%s) " "and software (%s) versions", gateware_version, software_version)