Added __getchar function and added long integer format to scanf
Added log level command
Fixed write settings function to not trigger watchdog
Updated for new termlib