Skip to content

Commit

Permalink
Issue #1713: Fix Mbot infrared sensor return value
Browse files Browse the repository at this point in the history
  • Loading branch information
NiHoffmann authored and bjost2s committed Feb 13, 2025
1 parent 1771979 commit 6075e9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public Void visitInfraredSensor(InfraredSensor infraredSensor) {
} else if ( slot.equals("2") ) {
slot = C.RIGHT;
}
JSONObject o = makeNode(C.GET_SAMPLE).put(C.GET_SAMPLE, C.INFRARED).put(C.PORT, port).put(C.MODE, slot);
JSONObject o = makeNode(C.GET_SAMPLE).put(C.GET_SAMPLE, C.INFRARED).put(C.PORT, port).put(C.SLOT, slot).put(C.NAME, "mbot");
return add(o);
}

Expand Down

0 comments on commit 6075e9b

Please sign in to comment.