fix htype check

This commit is contained in:
ebner 2025-03-17 11:08:35 +01:00
parent 0c2c2d21d3
commit 284a09d14f

View File

@ -163,7 +163,7 @@ public class Collector implements Runnable {
// hinfo.setHeader(header);
Map<String, Object> m = mapper.readValue(header, new TypeReference<HashMap<String, Object>>() {
});
if (((List<String>) m.get("htype")).contains("array-1.0")) { // currently
if (((String) m.get("htype")).equals("array-1.0")) { // currently
// we
// only
// support
@ -195,7 +195,7 @@ public class Collector implements Runnable {
hinfo.setText(m);
}
else if (((List<String>) m.get("htype")).contains("pilatus-1.0")) { // pilatus
else if (((String) m.get("htype")).equals("pilatus-1.0")) { // pilatus
// 1.0
// message
// support