sky_shell_compilation_test.js

来自「Contiki是一个开源」· JavaScript 代码 · 共 14 行

JS
14
字号
/* Script is called once for every node log output. *//* Input variables: Mote mote, int id, String msg. *//* Contiki test script example */if (msg.startsWith('Contiki')) {  log.log('TEST OK\n'); /* Report test success */    /* To increase test run speed, close the simulator when done */  mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/} else {  log.log('TEST FAIL\n'); /* Report test failure */  mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?