From d6f1c5984a5542ad8a1483a10e271a16dfcd0859 Mon Sep 17 00:00:00 2001 From: mwojcik Date: Wed, 27 Apr 2022 17:31:19 +0800 Subject: [PATCH] artiq_sinara_tester: fix urukul eeprom_word type --- artiq/frontend/artiq_sinara_tester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/frontend/artiq_sinara_tester.py b/artiq/frontend/artiq_sinara_tester.py index 209b52e0d..78361a380 100755 --- a/artiq/frontend/artiq_sinara_tester.py +++ b/artiq/frontend/artiq_sinara_tester.py @@ -318,7 +318,7 @@ class SinaraTester(EnvExperiment): offset = channel_dev.sync_data.eeprom_offset sync_delay_seed, io_update_delay = self.calibrate_urukul(channel_dev) print("{}\t{} {}".format(channel_name, sync_delay_seed, io_update_delay)) - eeprom_word = (sync_delay_seed << 24) | (io_update_delay << 16) + eeprom_word = int32((sync_delay_seed << 24) | (io_update_delay << 16)) eeprom.write_i32(offset, eeprom_word) print("...done")