Update loki_flash.c