BTW, ifconfig reports state : <null>. That looks strange to me. shouldn't that be "idle"?
sta0: WiFi Client Interface
state : <null>
rssi : 0
channel : 0
inet addr:0.0.0.0 Mask:0.0.0.0 Gateway:0.0.0.0
Explore... Chat... Share...
sta0: WiFi Client Interface
state : <null>
rssi : 0
channel : 0
inet addr:0.0.0.0 Mask:0.0.0.0 Gateway:0.0.0.0
Necromant wrote:reaper7 wrote:@Necromant - it will be possible to compile Frankenstein firm on windows? (for eg on "My Espressif DevKit for Windows")
Frankenstein is based on antares buildsystem, that's been only well tested in a Linux/FreeBSD environment. MAC OS X support is there as well, it works, but it lacks regular regression testing. Regarding windows - nobody ever tried that. It MIGHT work under cygwin, but I can't even guess what bugs might arise.
Without cygwin it's most likely a no-go, since windows lacks even the simplest command line tools... If you actually make antares work in windows environment without breaking linux/os x support - beer/coffee's on me
diff --git a/configs/config_default b/configs/config_default
index baebca5..a9932a4 100644
--- a/configs/config_default
+++ b/configs/config_default
@@ -163,6 +163,7 @@ CONFIG_CMD_DHT11=y
#
# Commandline fine-tuning
#
+CONFIG_USE_MICRORL=y
CONFIG_MICRORL_USE_COMPLETE=y
CONFIG_MICRORL_USE_HISTORY=y
diff --git a/include/microrl.h b/include/microrl.h
index 69254ac..36e6860 100644
--- a/include/microrl.h
+++ b/include/microrl.h
@@ -94,6 +94,8 @@ typedef struct {
#endif
} microrl_t;
+#ifdef CONFIG_USE_MICRORL
+
// init internal data, calls once at start up
void microrl_init (microrl_t * pThis, void (*print)(const char*));
@@ -124,5 +126,16 @@ void microrl_insert_char (microrl_t * pThis, int ch);
void microrl_print_prompt (microrl_t * pThis);
void microrl_set_prompt(const char* prompt);
+#else
+
+#define microrl_init(pThis,print)
+#define microrl_set_echo(arg)
+#define microrl_set_complete_callback(pThis,get_completion)
+#define microrl_set_execute_callback(pThis,execute)
+#define microrl_set_sigint_callback(pThis,sigintf)
+#define microrl_insert_char(pThis,ch)
+#define microrl_print_prompt(pThis)
+#define microrl_set_prompt(prompt)
+#endif
#endif
diff --git a/kcnf b/kcnf
index b2d7ef3..d2cb273 100644
--- a/kcnf
+++ b/kcnf
@@ -152,6 +152,9 @@ endmenu
menu "Commandline fine-tuning"
+config USE_MICRORL
+bool "Provide command line editing"
+
config MICRORL_USE_COMPLETE
bool "Command auto-completion"
diff --git a/src/microrl.c b/src/microrl.c
index ef83fe5..91e7f55 100644
--- a/src/microrl.c
+++ b/src/microrl.c
@@ -16,6 +16,8 @@ BUGS and TODO:
#include <stdio.h>
#endif
+#ifdef CONFIG_USE_MICRORL
+
#include "console.h"
//#define DBG(...) fprintf(stderr, "\033[33m");fprintf(stderr,__VA_ARGS__);fprintf(stderr,"\033[0m");
@@ -752,3 +754,5 @@ void microrl_set_echo (int e)
{
echo = e;
}
+
+#endif // CONFIG_USE_MICRORL
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]