Revision 3106e8cc unittests/periphery-lld/src/ut_alld_TLC5947_v1.c
unittests/periphery-lld/src/ut_alld_TLC5947_v1.c | ||
---|---|---|
101 | 101 |
status |= tlc5947_lld_update((TLC5947Driver*)ut->data); |
102 | 102 |
aosThdMSleep(100); |
103 | 103 |
} |
104 |
if (status == APAL_STATUS_OK) { |
|
104 |
if (status == APAL_STATUS_OK || status == APAL_STATUS_WARNING) {
|
|
105 | 105 |
aosUtPassed(stream, &result); |
106 | 106 |
} else { |
107 | 107 |
aosUtFailedMsg(stream, &result, "0x%08X\n", status); |
... | ... | |
121 | 121 |
aosThdMSleep(100); |
122 | 122 |
} |
123 | 123 |
status |= tlc5947_lld_setBlank((TLC5947Driver*)ut->data, TLC5947_LLD_BLANK_ENABLE); |
124 |
if (status == APAL_STATUS_OK) { |
|
124 |
if (status == APAL_STATUS_OK || status == APAL_STATUS_WARNING) {
|
|
125 | 125 |
aosUtPassed(stream, &result); |
126 | 126 |
} else { |
127 | 127 |
aosUtFailedMsg(stream, &result, "0x%08X\n", status); |
... | ... | |
154 | 154 |
tlc5947_lld_setBuffer(&buffer, channel, 0); |
155 | 155 |
} |
156 | 156 |
} |
157 |
if (status == APAL_STATUS_OK) { |
|
157 |
if (status == APAL_STATUS_OK || status == APAL_STATUS_WARNING) {
|
|
158 | 158 |
aosUtPassed(stream, &result); |
159 | 159 |
} else { |
160 | 160 |
aosUtFailedMsg(stream, &result, "0x%08X\n", status); |
... | ... | |
179 | 179 |
tlc5947_lld_setBuffer(&buffer, channel, 0); |
180 | 180 |
} |
181 | 181 |
} |
182 |
if (status == APAL_STATUS_OK) { |
|
182 |
if (status == APAL_STATUS_OK || status == APAL_STATUS_WARNING) {
|
|
183 | 183 |
aosUtPassed(stream, &result); |
184 | 184 |
} else { |
185 | 185 |
aosUtFailedMsg(stream, &result, "0x%08X\n", status); |
Also available in: Unified diff