From 48d28def47993b22c85b1a26dd424eb494c709a2 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Tue, 30 Jul 2024 22:02:00 +0200 Subject: [PATCH] Add air config --- .gitignore | 1 + encoding/.air.toml | 51 ++++++++++++++++++++++++++++++++++++++++++++++ pdu/submit.go | 1 + 3 files changed, 53 insertions(+) create mode 100644 encoding/.air.toml diff --git a/.gitignore b/.gitignore index bd7d5b2..faa11f1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ jstester/node_modules +encoding/tmp diff --git a/encoding/.air.toml b/encoding/.air.toml new file mode 100644 index 0000000..cdbafef --- /dev/null +++ b/encoding/.air.toml @@ -0,0 +1,51 @@ +root = "." +testdata_dir = "testdata" +tmp_dir = "tmp" + +[build] + args_bin = [] + bin = "tmp\\main.exe" + cmd = "go test ." + delay = 1000 + exclude_dir = ["assets", "tmp", "vendor", "testdata"] + exclude_file = [] + exclude_regex = [] + exclude_unchanged = false + follow_symlink = false + full_bin = "" + include_dir = [] + include_ext = ["go", "tpl", "tmpl", "html"] + include_file = [] + kill_delay = "0s" + log = "build-errors.log" + poll = false + poll_interval = 0 + post_cmd = [] + pre_cmd = [] + rerun = false + rerun_delay = 100 + send_interrupt = false + stop_on_error = false + +[color] + app = "" + build = "yellow" + main = "magenta" + runner = "green" + watcher = "cyan" + +[log] + main_only = false + time = false + +[misc] + clean_on_exit = true + +[proxy] + app_port = 0 + enabled = false + proxy_port = 0 + +[screen] + clear_on_rebuild = true + keep_scroll = true diff --git a/pdu/submit.go b/pdu/submit.go index 4ec139d..1cc2825 100644 --- a/pdu/submit.go +++ b/pdu/submit.go @@ -78,6 +78,7 @@ func (p *SUBMIT_SM) Encode(buf *bytes.Buffer) error { // UCS2 should also be fairly easy, use uint16 or something // GSM7 will not be easy // See https://www.codeproject.com/Tips/470755/Encoding-Decoding-7-bit-User-Data-for-SMS-PDU-PDU + // Another great site: https://doubleblak.com/blogPost.php?k=7bitpdu asciiEncoder := ascii85.NewEncoder(buf) // TODO: Implement encodings bsed on p.data_coding messageEncoder := gsm7.NewEncoder()