Skip to content

Commit

Permalink
Up to 1.0.12-20220306
Browse files Browse the repository at this point in the history
  • Loading branch information
4IceG authored Mar 6, 2022
1 parent 773a223 commit f97f7c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion luci-app-modemband/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PKG_NAME:=luci-app-modemband
LUCI_TITLE:=LuCI panel for modemband
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+sms-tool +modemband
PKG_VERSION:=1.0.12-20220305
PKG_VERSION:=1.0.12-20220306
PKG_RELEASE:=1

include $(TOPDIR)/feeds/luci/luci.mk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,15 @@ function handleAction(ev) {
}
if (ev === 'onupload') {
return uci.load('modemband').then(function() {
var sport = (uci.get('modemband', '@modemband[0]', 'set_port'));
fs.exec_direct('/usr/bin/sms_tool', [ '-d' , sport , 'at' , 'AT+ZULCA=1' ]);
//var sport = (uci.get('modemband', '@modemband[0]', 'set_port'));
fs.exec_direct('/usr/bin/sms_tool', [ '-d' , '/dev/ttyUSB1' , 'at' , 'AT+ZULCA=1' ]);
});

}
if (ev === 'offupload') {
return uci.load('modemband').then(function() {
var sport = (uci.get('modemband', '@modemband[0]', 'set_port'));
fs.exec_direct('/usr/bin/sms_tool', [ '-d' , sport , 'at' , 'AT+ZULCA=0' ]);
//var sport = (uci.get('modemband', '@modemband[0]', 'set_port'));
fs.exec_direct('/usr/bin/sms_tool', [ '-d' , '/dev/ttyUSB1' , 'at' , 'AT+ZULCA=0' ]);
});
}
}
Expand Down

0 comments on commit f97f7c5

Please sign in to comment.