From 95f3f3fada510e2265913d3f0bdc4e5880213fd4 Mon Sep 17 00:00:00 2001
From: Janis Streib <me@janis-streib.de>
Date: Mon, 20 Jun 2022 15:58:29 +0200
Subject: [PATCH] FIX: no bundle ertror on multiple hubs

---
 src/G4Export.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/G4Export.cpp b/src/G4Export.cpp
index 1c17137..a839e6d 100644
--- a/src/G4Export.cpp
+++ b/src/G4Export.cpp
@@ -50,10 +50,10 @@
 		char buffer[OUTPUT_BUFFER_SIZE];
 		osc::OutboundPacketStream p( buffer, OUTPUT_BUFFER_SIZE );
 
-		if(!use_text) {
-			p << osc::BeginBundleImmediate;
-		}
 		for (int i=0;i<prs->numHub;i++){
+			if(!use_text) {
+				p << osc::BeginBundleImmediate;
+			}
 			for(int j=0;j<G4_SENSORS_PER_HUB;j++) {
 				if(!prs->hubList[i].IsSenActive(j)){
 					continue;

--
Gitblit v1.9.1