Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e365eba0dd | ||
|
|
440a42d3fe |
4
Makefile
4
Makefile
@@ -4,6 +4,10 @@ KDIR := /lib/modules/${KVERSION}/build
|
|||||||
default:
|
default:
|
||||||
$(MAKE) -C $(KDIR) M=$$PWD
|
$(MAKE) -C $(KDIR) M=$$PWD
|
||||||
|
|
||||||
|
debug:
|
||||||
|
$(MAKE) -C $(KDIR) M=$$PWD EXTRA_CFLAGS="-g -DDEBUG"
|
||||||
|
|
||||||
|
|
||||||
install: default
|
install: default
|
||||||
$(MAKE) -C $(KDIR) M=$$PWD modules_install
|
$(MAKE) -C $(KDIR) M=$$PWD modules_install
|
||||||
depmod -A
|
depmod -A
|
||||||
|
|||||||
@@ -499,6 +499,9 @@ static void pidff_playback_pid(struct pidff_device *pidff, int pid_id, int n)
|
|||||||
} else {
|
} else {
|
||||||
pidff->effect_operation_status->value[0] =
|
pidff->effect_operation_status->value[0] =
|
||||||
pidff->operation_id[PID_EFFECT_START];
|
pidff->operation_id[PID_EFFECT_START];
|
||||||
|
|
||||||
|
n = clamp(n, pidff->effect_operation[PID_LOOP_COUNT].field->logical_minimum,
|
||||||
|
pidff->effect_operation[PID_LOOP_COUNT].field->logical_maximum);
|
||||||
pidff->effect_operation[PID_LOOP_COUNT].value[0] = n;
|
pidff->effect_operation[PID_LOOP_COUNT].value[0] = n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user