We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6428f23 commit b528093Copy full SHA for b528093
obc/app/app_main.c
@@ -34,13 +34,10 @@ uint32_t __stack_chk_guard_change(void) {
34
uint32_t newStackGuard = 0;
35
for (uint8_t i = 0; i < STACK_BYTES; i++) {
36
uint8_t randomByte;
37
- errCode = cc1120Rng(&randomByte);
+ LOG_IF_ERROR_CODE(cc1120Rng(&randomByte));
38
if (errCode == OBC_ERR_CODE_SUCCESS) {
39
(newStackGuard) = (newStackGuard << 8) | randomByte;
40
} else {
41
- LOG_ERROR_CODE(errCode);
42
- errCode = OBC_ERR_CODE_FAILED_STACK_CANARY;
43
44
return 0xDEADBEEF;
45
}
46
0 commit comments