@@ -671,12 +671,7 @@ async def state10_send_request8(self) -> None:
671671 async def state11_send_request9 (self ) -> None :
672672 """Handle additional cells for more than 128 cells (e.g., 5 modules)"""
673673 # State 11: Send request 9 - Switch to second pass
674- if self .current_tower == 0 :
675- await self .send_request (self .my_requests ['start_measure_box_1' ])
676- elif self .current_tower == 1 :
677- await self .send_request (self .my_requests ['start_measure_box_2' ])
678- elif self .current_tower == 2 :
679- await self .send_request (self .my_requests ['start_measure_box_3' ])
674+ await self .send_request (self .my_requests ['switch_pass' ])
680675 data = await self .receive_response ()
681676 if data and self .check_packet (data ):
682677 self .my_state = 12
@@ -686,7 +681,12 @@ async def state11_send_request9(self) -> None:
686681
687682 async def state12_send_request10 (self ) -> None :
688683 """State 12: Send request 10 - Start measurement"""
689- await self .send_request (self .my_requests ['start_measurement' ])
684+ if self .current_tower == 0 :
685+ await self .send_request (self .my_requests ['start_measure_box_1' ])
686+ elif self .current_tower == 1 :
687+ await self .send_request (self .my_requests ['start_measure_box_2' ])
688+ elif self .current_tower == 2 :
689+ await self .send_request (self .my_requests ['start_measure_box_3' ])
690690 data = await self .receive_response ()
691691 if data and self .check_packet (data ):
692692 # Wait time as per original code (e.g., 3 seconds)
0 commit comments