diff --git a/Nasal/modules/canvas_efis/main.nas b/Nasal/modules/canvas_efis/main.nas index 614646781..f4dd69d1f 100644 --- a/Nasal/modules/canvas_efis/main.nas +++ b/Nasal/modules/canvas_efis/main.nas @@ -1,7 +1,7 @@ # # canvas-efis loader # -var EFIS_namespace = "canvas_efis"; +var EFIS_namespace = "_uninitalized_"; var unload = func(module) { globals[EFIS_namespace].DisplayUnit.unload(); @@ -10,6 +10,7 @@ var unload = func(module) { } var main = func(module) { + EFIS_namespace = module.getNamespaceName(); io.load_nasal(module.getFilePath()~"efis-framework.nas", EFIS_namespace); io.load_nasal(module.getFilePath()~"eicas-message-sys.nas", EFIS_namespace); }