Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio_device_get_trigger will return 0 on success, but if there is no device assigned to the trigger, the trigger pointer will be NULL. since the impulse generator menu sets the trigger, the condition will not be satisfied. this resulted in the impulse generator menu being grayed out. Now, we will only check that the return value is 0. The renaming of the bool variable is to avoid confusion. Signed-off-by: Cristina Suteu <[email protected]>
- Loading branch information