diff --git a/vehicle/OVMS.V3/main/Kconfig b/vehicle/OVMS.V3/main/Kconfig index 85bae8bb..1b16e190 100644 --- a/vehicle/OVMS.V3/main/Kconfig +++ b/vehicle/OVMS.V3/main/Kconfig @@ -661,6 +661,13 @@ endmenu # Component Options menu "Developer Options" depends on OVMS +config OVMS_DEV_SECUREASYNC + bool "Initialize async console in enabled mode" + default n + depends on OVMS + help + Enable for async console to be automatically logged in (danger: insecure) + config OVMS_DEV_CONFIGVFS bool "Disable the usual protections for configuration visibility in VFS" default n diff --git a/vehicle/OVMS.V3/main/console_async.cpp b/vehicle/OVMS.V3/main/console_async.cpp index 884ddce1..c0e4afeb 100644 --- a/vehicle/OVMS.V3/main/console_async.cpp +++ b/vehicle/OVMS.V3/main/console_async.cpp @@ -50,6 +50,9 @@ ConsoleAsync* ConsoleAsync::Instance() ConsoleAsync::ConsoleAsync() : TaskBase("OVMS Console", CONFIG_OVMS_SYS_COMMAND_STACK_SIZE) { m_monitoring = true; +#ifdef CONFIG_OVMS_DEV_SECUREASYNC + SetSecure(true); // Security Risk - Only for development +#endif uart_config_t uart_config = { .baud_rate = 115200,