From da3f77d6804249dd60ef89b44e9aa07965bbdf29 Mon Sep 17 00:00:00 2001 From: Mitch Bailey Date: Fri, 22 Apr 2022 09:53:21 +0900 Subject: [PATCH] Changed int (truncate) to round to correct gpio_default error. (#83) --- scripts/gen_gpio_defaults.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gen_gpio_defaults.py b/scripts/gen_gpio_defaults.py index 9d042202..88855c0e 100755 --- a/scripts/gen_gpio_defaults.py +++ b/scripts/gen_gpio_defaults.py @@ -189,8 +189,8 @@ if __name__ == '__main__': one_string = [] for i in range(0, 13): - llx_zero = int(via_pos[i][0] * 200) - lly_zero = int(via_pos[i][1] * 200) + llx_zero = round(via_pos[i][0] * 200) + lly_zero = round(via_pos[i][1] * 200) urx_zero = llx_zero + 34 ury_zero = lly_zero + 34