Skip to content

Commit b528093

Browse files
CathouwuNavtajh04
andauthored
commit suggestion
Co-authored-by: Navtajhundal <87790825+Navtajh04@users.noreply.github.com>
1 parent 6428f23 commit b528093

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

obc/app/app_main.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,10 @@ uint32_t __stack_chk_guard_change(void) {
3434
uint32_t newStackGuard = 0;
3535
for (uint8_t i = 0; i < STACK_BYTES; i++) {
3636
uint8_t randomByte;
37-
errCode = cc1120Rng(&randomByte);
37+
LOG_IF_ERROR_CODE(cc1120Rng(&randomByte));
3838
if (errCode == OBC_ERR_CODE_SUCCESS) {
3939
(newStackGuard) = (newStackGuard << 8) | randomByte;
4040
} else {
41-
LOG_ERROR_CODE(errCode);
42-
errCode = OBC_ERR_CODE_FAILED_STACK_CANARY;
43-
LOG_ERROR_CODE(errCode);
4441
return 0xDEADBEEF;
4542
}
4643
}

0 commit comments

Comments
 (0)