We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1d4bcf commit 9560f81Copy full SHA for 9560f81
1 file changed
src/hal/drivers/mesa-hostmot2/oneshot.c
@@ -92,7 +92,7 @@ void hm2_oneshot_update_control(hostmot2_t *hm2, int i) {
92
controlbuff |= (*hm2->oneshot.instance[i].hal.pin.enable1 << 6);
93
controlbuff |= (*hm2->oneshot.instance[i].hal.pin.reset1 << 7);
94
controlbuff |= (*hm2->oneshot.instance[i].hal.pin.swtrig1 << 10);
95
- controlbuff |= ((*hm2->oneshot.instance[i].hal.pin.dpll_timer_num && 7) << 12);
+ controlbuff |= ((*hm2->oneshot.instance[i].hal.pin.dpll_timer_num & 7) << 12);
96
controlbuff |= (*hm2->oneshot.instance[i].hal.pin.trigselect2 << 16);
97
controlbuff |= (*hm2->oneshot.instance[i].hal.pin.trigrise2 << 19);
98
controlbuff |= (*hm2->oneshot.instance[i].hal.pin.trigfall2 << 20);
0 commit comments