eclipse / mita

mita
Eclipse Public License 2.0
56 stars 20 forks source link

Enumerators not accessible outside setup scopes #324

Closed tkutz closed 5 years ago

tkutz commented 5 years ago

Current behavior: It is currently not possible to check which value a modality of enumeration type has.

Related code:

every 1 second{
    var z = my_sensor00.modality02.read();

    if (z == MyConfigItemValues.CFG_VAL_1) {
        println("ok");
    }
}

In the code snippet CFG_VAL_1 cannot be resolved.

tkutz commented 5 years ago

My enum was not exported, that's why it did not work.