From 709017ed39a2ce74681115c16a7c864cb544b5c7 Mon Sep 17 00:00:00 2001
From: Nils VAN ZUIJLEN <nils.van-zuijlen@mailo.com>
Date: Sun, 23 Jun 2024 10:03:52 +0200
Subject: [PATCH] fix y 4sp for score display

---
 robot/code/robot/modes/yellow/yellow_4_solar_panel.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/robot/code/robot/modes/yellow/yellow_4_solar_panel.py b/robot/code/robot/modes/yellow/yellow_4_solar_panel.py
index 762ab0e9..03baf228 100644
--- a/robot/code/robot/modes/yellow/yellow_4_solar_panel.py
+++ b/robot/code/robot/modes/yellow/yellow_4_solar_panel.py
@@ -4,7 +4,7 @@ from robot.actionneurs.com_arduino_i2c import sendI2CData
 from robot.actionneurs.op_codes import *
 from robot.afficheur.affichage_statique_thread import main
 import time
-import threading
+import multiprocessing
 
 class DemoSquareRobot(Robot):
 
@@ -12,7 +12,7 @@ class DemoSquareRobot(Robot):
     start_position = pl.PositionRobot(pl.PointImage(2800, 200), -60)
     
     def execute_strategy(self):
-        score = threading.Thread(target=main,args=(42,))
+        score = multiprocessing.Process(target=main, args=(42, self.start_time))
         score.start()
         #on allume le ruban de led en vert au début du match
         sendI2CData("LLRs1")
-- 
GitLab