Allow to build telnet-server example for targets not defining CTK_CONF_MAXMENUITEMS.
This commit is contained in:
parent
f60b7aabcf
commit
ad4a8df425
2 changed files with 4 additions and 4 deletions
|
@ -43,7 +43,7 @@
|
|||
*
|
||||
* This file is part of the Contiki desktop OS
|
||||
*
|
||||
* $Id: program-handler.c,v 1.3 2006/08/30 22:40:58 oliverschmidt Exp $
|
||||
* $Id: program-handler.c,v 1.4 2007/03/26 23:02:11 oliverschmidt Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -336,7 +336,7 @@ PROCESS_THREAD(program_handler_process, ev, data)
|
|||
}
|
||||
#endif /* QUIT_MENU */
|
||||
dscp = &contikidsc[0];
|
||||
for(i = 0; i < CTK_CONF_MAXMENUITEMS; ++i) {
|
||||
for(i = 0; i < CTK_MAXMENUITEMS; ++i) {
|
||||
if(*dscp != NULL &&
|
||||
data == (process_data_t)(*dscp)->icon) {
|
||||
RUN((*dscp)->prgname, (*dscp)->process, NULL);
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: ctk.c,v 1.4 2006/08/30 23:12:33 oliverschmidt Exp $
|
||||
* $Id: ctk.c,v 1.5 2007/03/26 23:01:11 oliverschmidt Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -774,7 +774,7 @@ ctk_menuitem_add(CC_REGISTER_ARG struct ctk_menu *menu,
|
|||
char *name)
|
||||
{
|
||||
#if CTK_CONF_MENUS
|
||||
if(menu->nitems == CTK_CONF_MAXMENUITEMS) {
|
||||
if(menu->nitems == CTK_MAXMENUITEMS) {
|
||||
return 0;
|
||||
}
|
||||
menu->items[menu->nitems].title = name;
|
||||
|
|
Loading…
Reference in a new issue