From ed68f25b8734addb4df986ab3041237868b069f9 Mon Sep 17 00:00:00 2001 From: AvantLiu Date: Fri, 7 Jan 2022 10:56:49 +0800 Subject: [PATCH] fix: io:format(Profile) error --- apps/dgiot_mqtt/src/dgiot_mqttc_channel.erl | 3 +-- scripts/inject-deps.escript | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/dgiot_mqtt/src/dgiot_mqttc_channel.erl b/apps/dgiot_mqtt/src/dgiot_mqttc_channel.erl index 4eabce2e..3ccd4803 100644 --- a/apps/dgiot_mqtt/src/dgiot_mqttc_channel.erl +++ b/apps/dgiot_mqtt/src/dgiot_mqttc_channel.erl @@ -33,9 +33,8 @@ %% 注册通道类型 -channel_type(#{ - cType => ?TYPE, - type => ?BRIDGE_CHL, + type => ?PROTOCOL_CHL, title => #{ zh => <<"MQTT资源通道"/utf8>> }, diff --git a/scripts/inject-deps.escript b/scripts/inject-deps.escript index 1f13e3f2..35b4d865 100644 --- a/scripts/inject-deps.escript +++ b/scripts/inject-deps.escript @@ -99,7 +99,6 @@ inject(Profile) -> %% list the profile/lib dir to get all apps list_apps(LibDir) -> Apps = filelib:wildcard("*", LibDir), - io:format(standard_error, "~p", [Profile]), lists:foldl(fun(App, Acc) -> [App || is_app(LibDir, App)] ++ Acc end, [], Apps). is_app(_LibDir, "." ++ _) -> false; %% ignore hidden dir