Open full view…

i2c.js triggers on too many addresses level 8

Sun, 03 May 2020 22:20:42 GMT

Setting the trigger to an address will trigger for a different address. I poked around in the script and think the trigger data does not mask off each individual bit, only shits the addr right, so even though the bit is zero, the remainder of the address is included in the call to function trig_build_bit(bit). In that function the value hits the last else, X condition. else if (trig_alt == 1) //Trig on I2C addresses { trig_build_start(); for(var i=0; i<7; i++)// 7 { workerBitMask = 1; workerBitMask>>(6-i); trig_build_bit((trig_addr>>(6-i)) & workerBitMask); }

Mon, 04 May 2020 20:40:43 GMT

Interesting, the copy paste removed your underscores in the function and variable. but this starts around line 750