From 2f455be3fdba87c680d4ca336b69d2ad7faa5268 Mon Sep 17 00:00:00 2001 From: jdeschamps <6367888+jdeschamps@users.noreply.github.com> Date: Tue, 7 Dec 2021 22:56:34 +0100 Subject: [PATCH] Logical boards order --- microfpga/controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/microfpga/controller.py b/microfpga/controller.py index c875778..f095fd4 100644 --- a/microfpga/controller.py +++ b/microfpga/controller.py @@ -58,9 +58,9 @@ def __init__(self, n_laser=0, n_ttl=0, n_servo=0, n_pwm=0, n_ai=0, use_camera=Tr ', got ' + str(self._version) + '. The port has been disconnected') if not (self._id in signals.get_compatible_ids()): - raise Warning(f'Wrong board id: expected {signals.ID_AU} (Au),' - f' {signals.ID_AUP} (Au+), {signals.ID_CU} (Cu) or' - f' {signals.ID_MOJO} (Mojo),' + raise Warning(f'Wrong board id: expected {signals.ID_MOJO} (Mojo),' + f' {signals.ID_CU} (Cu), {signals.ID_AU} (Au) or' + f' {signals.ID_AUP} (Au+),' f' got {self._id}. The port has been disconnected') def __enter__(self):