Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed May 28, 2024
1 parent 44ee25b commit 657d33b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/surface/gui/gui/widgets/float_comm.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,16 @@ def handle_data(self, msg: FloatData) -> None:
elif msg.profile_number not in (0, 1):
return

if msg.profile_half == 0 and not self.received_first:
if msg.profile_half == 0 and not self.received_first_half:
self.time_data = time_data + self.time_data
self.depth_data = depth_data + self.depth_data
self.received_first = True
elif msg.profile_half == 1 and not self.received_second:
self.received_first_half = True
elif msg.profile_half == 1 and not self.received_second_half:
self.time_data = self.time_data + time_data
self.depth_data = self.depth_data + depth_data
self.received_second = True
self.received_second_half = True

if self.received_first and self.received_second:
if self.received_first_half and self.received_second_half:
self.plots[msg.profile_number].plot(self.time_data, self.depth_data)
self.time_data = []
self.depth_data = []
Expand Down

0 comments on commit 657d33b

Please sign in to comment.