Skip to content

Commit

Permalink
Fixes #1643 - no more freeze but now I have to understand why we go over
Browse files Browse the repository at this point in the history
4k there
  • Loading branch information
bsongis committed Aug 27, 2014
1 parent 8c813a8 commit 1f6d179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion radio/src/opentx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3312,7 +3312,7 @@ uint16_t stack_free(uint8_t tid)
for (; i<size; i++)
if (stack[i] != 0x55555555)
break;
return i*4;
return i;
}
#else
extern unsigned char __bss_end ;
Expand Down
2 changes: 1 addition & 1 deletion radio/src/targets/sky9x/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ extern int _getpid ( void ) ;
unsigned char *heap = (unsigned char *)&_end;
extern caddr_t _sbrk(int nbytes)
{
if (heap + nbytes < RAM_END-4096) {
if (heap + nbytes < RAM_END-8192) {
unsigned char *prev_heap = heap;
heap += nbytes;
return (caddr_t) prev_heap;
Expand Down

0 comments on commit 1f6d179

Please sign in to comment.