commit | d94654aa99f32c232beae81ca500c65f5b011edf | [log] [tgz] |
---|---|---|
author | r.xiao <r.xiao@mobiletek.cn> | Mon Apr 22 02:47:51 2024 -0700 |
committer | r.xiao <r.xiao@mobiletek.cn> | Mon Apr 22 02:47:51 2024 -0700 |
tree | 5339135adec2da50c1af88fb466dbb2dfc573ac8 | |
parent | 12a8781fdfac99fb8ea70735674212bd98e60bc2 [diff] [blame] |
修复irq模块错误 Change-Id: Ide49b34b09ab73d53ed44d293e9cbfe501ad4745
diff --git a/mbtk/test/liblynq_lib/lynq_irq_test.c b/mbtk/test/liblynq_lib/lynq_irq_test.c index 56ee98e..43b52ce 100755 --- a/mbtk/test/liblynq_lib/lynq_irq_test.c +++ b/mbtk/test/liblynq_lib/lynq_irq_test.c
@@ -93,7 +93,7 @@ fflush(stdin); irq = atoi(operator); ret = lynq_irq_get_type(irq); - if (ret != 0) + if (ret < 0) { printf("lynq_irq_get_type fail\n"); } @@ -134,7 +134,7 @@ fflush(stdin); irq = atoi(operator); ret = lynq_irq_get_wake(irq); - if (ret != 0) + if (ret < 0) { printf("lynq_irq_get_wake fail\n"); }