diff --git a/src/app/settings/local/LocalSettings.svelte b/src/app/settings/local/LocalSettings.svelte index a9ca75a97..e60775f0c 100644 --- a/src/app/settings/local/LocalSettings.svelte +++ b/src/app/settings/local/LocalSettings.svelte @@ -255,6 +255,7 @@ runtime.forEach(controller =>{ if(controller.dx == store.brc.DX && controller.dy == store.brc.DY){ let events = controller.banks[store.frame.BANKNUMBER][store.frame.ELEMENTNUMBER].events.find(cntrl => cntrl.event.value == store.frame.EVENTTYPE); + console.log(store.frame.EVENTTYPE) // Upon connecting modules, messages on config are sent back to editor at instant. // To avoid unnecessary message flow, filter configs sent back with the cfgstatus flag. if(events){ diff --git a/src/app/stores/runtime.store.js b/src/app/stores/runtime.store.js index 69c7f03e4..f6462bff3 100644 --- a/src/app/stores/runtime.store.js +++ b/src/app/stores/runtime.store.js @@ -38,9 +38,9 @@ function createRuntimeStore(){ "CONFIGURATION", "FETCH", [ - { BANKNUMBER: inputStore.bankActive}, - { ELEMENTNUMBER: inputStore.elementNumber}, - { EVENTTYPE: inputStore.eventType}, + { BANKNUMBER: parameter_parser(inputStore.bankActive)}, + { ELEMENTNUMBER: parameter_parser(inputStore.elementNumber)}, + { EVENTTYPE: parameter_parser(inputStore.eventType)}, { ACTIONSTRING: "" } ], "" @@ -133,7 +133,7 @@ export const gridSyncProcess = readable(counter, function start(set){ if(event.cfgStatus == "expected" || event.cfgStatus == "fetched" && gate == 0){ - + console.log(controller, event.cfgStatus) getConfig(controller, {bankActive: bankNumber, elementNumber: elementNumber, eventType: event.event.value}); event.cfgStatus = "fetched";