Fixed setConfig and its test passes. WriteFlash produces segfault related to getConfig