We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9dfa64 commit 3eb6c8dCopy full SHA for 3eb6c8d
static/js/camera.ts
@@ -212,8 +212,13 @@ async function processFrame(frame: Frame) {
212
frame.frameInfo.Camera.ResX,
213
frame.frameInfo.Camera.ResY
214
);
215
- // gp hack to see if ir camera
216
- let irCamera = frame.frameInfo.Camera.ResX == 640;
+ // gp hack to see if ir camera, dbus from python makes dictionary have to be all int type
+ let irCamera = frame.frameInfo.Camera.Model=="2";
217
+ if(irCamera){
218
+ document.getElementById("trigger-trap")!.style.display = "";
219
+ }else{
220
+ document.getElementById("trigger-trap")!.style.display = "none";
221
+ }
222
let max=0;
223
let min=0;
224
let range=0;
0 commit comments