diff --git a/build/targets.device.n0110.mak b/build/targets.device.n0110.mak index 7c22b862b..ad3217454 100644 --- a/build/targets.device.n0110.mak +++ b/build/targets.device.n0110.mak @@ -13,7 +13,7 @@ $(BUILD_DIR)/test.external_flash.write.$(EXE): $(BUILD_DIR)/quiz/src/test_ion_ex @echo " button on the back of your device." $(Q) until $(PYTHON) build/device/dfu.py -l | grep -E "0483:a291|0483:df11" > /dev/null 2>&1; do sleep 2;done $(eval DFU_SLAVE := $(shell $(PYTHON) build/device/dfu.py -l | grep -E "0483:a291|0483:df11")) - $(Q) if [[ "$(DFU_SLAVE)" == *"0483:df11"* ]]; \ + $(Q) if expr "$(DFU_SLAVE)" : ".*0483:df11.*" > /dev/null; \ then \ $(PYTHON) build/device/dfu.py -u $(word 2,$^); \ sleep 2; \