Macro read charging status

Can a macro respond to an event, read a value, and then act on it?

For example, I have 3 macros setup on our devices:

mbl_mw_settings_get_disconnect_event : turns led's off
mbl_mw_settings_get_charge_status_data_signal -> mbl_mw_dataprocessor_comparator_create == 1 : turn orange led on
mbl_mw_settings_get_charge_status_data_signal -> mbl_mw_dataprocessor_comparator_create == 0 : turn orange led off

These make it so the leds turn off on disconnection (they are on when in operation, turned on by our app), turn orange when charging and turn off when finished charging. This works fine, there are some inconsistencies when combining connection and disconnection whilst charging.

My question is, can I record a macro for the mbl_mw_settings_get_disconnect_event, and in that event macro do a read on mbl_mw_settings_read_current_charge_status and then set the leds based on that read value? (all in the macro)


Sign In or Register to comment.