Skip to content

Commit d65a5cb

Browse files
committed
Use time_critical_func instead of not_in_flash_func
1 parent 3992a52 commit d65a5cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ssi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ const char * __not_in_flash("httpd") ssi_example_tags[] = {
1313
"counter",
1414
"GPIO"
1515
};
16-
u16_t __not_in_flash_func(ssi_handler)(int iIndex, char *pcInsert, int iInsertLen) {
16+
u16_t __time_critical_func(ssi_handler)(int iIndex, char *pcInsert, int iInsertLen) {
1717
size_t printed;
1818
switch (iIndex) {
1919
case 0: /* "Hello" */
20-
printed = snprintf(pcInsert, iInsertLen, "Hello World!");
20+
printed = snprintf(pcInsert, iInsertLen, "Hello user number %d!", rand());
2121
break;
2222
case 1: /* "counter" */
2323
{

0 commit comments

Comments
 (0)