@@ -2437,7 +2437,7 @@ void data_channel_protection_ocp_limit(data::DataOperationEnum operation, data::
24372437 } else if (operation == data::DATA_OPERATION_GET_MIN) {
24382438 value = MakeValue (channel_dispatcher::getIMin (channel), UNIT_AMPER);
24392439 } else if (operation == data::DATA_OPERATION_GET_MAX) {
2440- value = MakeValue (channel_dispatcher::getIMax (channel), UNIT_AMPER);
2440+ value = MakeValue (channel_dispatcher::getIMaxLimit (channel), UNIT_AMPER);
24412441 } else if (operation == data::DATA_OPERATION_SET) {
24422442 channel_dispatcher::setCurrentLimit (channel, value.getFloat ());
24432443 } else if (operation == data::DATA_OPERATION_GET_NAME) {
@@ -3744,12 +3744,6 @@ void data_channel_trigger_mode(data::DataOperationEnum operation, data::Cursor &
37443744 }
37453745}
37463746
3747- void data_channel_trigger_output_state (data::DataOperationEnum operation, data::Cursor &cursor, data::Value &value) {
3748- if (operation == data::DATA_OPERATION_GET) {
3749- value = channel_dispatcher::getTriggerOutputState (*g_channel);
3750- }
3751- }
3752-
37533747void data_channel_trigger_on_list_stop (data::DataOperationEnum operation, data::Cursor &cursor, data::Value &value) {
37543748 if (operation == data::DATA_OPERATION_GET) {
37553749 value = MakeEnumDefinitionValue (channel_dispatcher::getTriggerOnListStop (*g_channel),
@@ -4534,6 +4528,17 @@ void data_channel_history_values(data::DataOperationEnum operation, data::Cursor
45344528 }
45354529}
45364530
4531+ void data_dlog_enabled (data::DataOperationEnum operation, data::Cursor &cursor, data::Value &value) {
4532+ #if OPTION_SD_CARD
4533+ if (operation == data::DATA_OPERATION_GET) {
4534+ value = (
4535+ channel_dispatcher::getCouplingType () == channel_dispatcher::COUPLING_TYPE_PARALLEL ||
4536+ channel_dispatcher::getCouplingType () == channel_dispatcher::COUPLING_TYPE_SERIES
4537+ ) && cursor.i == 1 ? 0 : 1 ;
4538+ }
4539+ #endif
4540+ }
4541+
45374542void data_dlog_voltage_enabled (data::DataOperationEnum operation, data::Cursor &cursor, data::Value &value) {
45384543#if OPTION_SD_CARD
45394544 if (operation == data::DATA_OPERATION_GET) {
0 commit comments