Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/NodeToken.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void initMem()
// printf("We satrt with: %ld free and stack:%ld \n", __startmem, __startStackMemory);
#endif
}
void displayStat(char *text)
void displayStat(const char *text)
{
pushToConsole(string_format(" %s :max used memory: %ld maxstack:%ld started %d free mem:%ld consumed %ld time:%dms", text, __maxMemUsage, __MaxStackMemory, __startmem, esp_get_free_heap_size(), __startmem - esp_get_free_heap_size(), (__endtime - __starttime) / 240000));
}
Expand Down
2 changes: 1 addition & 1 deletion src/asm_struct_enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Text
// _texts.push_back(cc);
_it = _texts.begin();
}
int findText(char * str)
int findText(const char * str)
{
#ifdef __SPEED
return -1;
Expand Down
2 changes: 1 addition & 1 deletion src/execute_asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ void freeExecutable(executable *ex)
if (ex->start_program != NULL)
{

heap_caps_aligned_free(ex->start_program);
heap_caps_free(ex->start_program);
}

ex->start_program = NULL;
Expand Down
5 changes: 3 additions & 2 deletions src/functionlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ __ASM__ float __div(float a,float b)\n\
\"divn.s f0, f2, f6\"\n\
\"retw.n\"\n\
}@";
char * _div[]={
const char * _div[]={
"@___div(d|d):",
"entry a1,16",
"div0.s f3, f2",
Expand Down Expand Up @@ -109,7 +109,8 @@ __ASM__ uint32_t rand(uint32_t mod) \n\
\"retw.n\" \n\
}@";
#else
string _rand="\__ASM__ uint32_t rand(uint32_t mod) \n\
string _rand="\
__ASM__ uint32_t rand(uint32_t mod) \n\
{\n\
\"entry a1,56\" \n\
//\"l32r a4,@_stack_rand(d)\" \n\
Expand Down