diff --git a/README.md b/README.md index 2364bb6..6b7c6f1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ Remote control of the MHS-5200A function generator =========== -[![Go Report Card](https://goreportcard.com/badge/github.com/peterska/go-mhs5200a)](https://goreportcard.com/report/github.com/peterska/go-mhs5200a) [![BSD 3-Clause License](http://img.shields.io/badge/bsd-3-clause.svg)](./LICENSE) About diff --git a/main.go b/main.go index be21fb5..f896b58 100644 --- a/main.go +++ b/main.go @@ -51,13 +51,13 @@ func usage() { fmt.Printf("\noptions can be zero or more of the following:\n") flag.PrintDefaults() fmt.Printf("\n") - + fmt.Printf("command can be one or more of the following:\n") - fmt.Printf(" showconfig - show the configuration of the current channel\n") + fmt.Printf(" showconfig - show the configuration of the current channel\n") fmt.Printf(" on - turn output on\n") fmt.Printf(" off - turn output off\n") fmt.Printf("\n") - + fmt.Printf(" channel [1|2] - sets the channel number commands will apply to\n") fmt.Printf(" frequency N - set the frequency N Hz\n") fmt.Printf(" waveform name - set the waveform to name. Valid names are sine, square, triangle, rising sawtooth, descending sawtooth\n") @@ -66,7 +66,7 @@ func usage() { fmt.Printf(" offset N - set the DC offset to N%% of the amplitude. Valid range is -120%% to +120%%\n") fmt.Printf(" phase N - set the phase to N°\n") fmt.Printf(" attenuation [on|off] - configure -20dB channel attenuation\n") - + fmt.Printf("\n") fmt.Printf(" showsweep - show the current sweep mode configuration\n") fmt.Printf(" sweepstart N - set the sweep start frequenecy to N Hz\n") @@ -75,11 +75,11 @@ func usage() { fmt.Printf(" sweeptype [log|linear] - set the sweep type to either log or linear\n") fmt.Printf(" sweepon - turn sweep function on\n") fmt.Printf(" sweepoff - turn sweep function off\n") - + fmt.Printf("\n") fmt.Printf(" sleep N - delay N seconds before executing the next command\n") fmt.Printf(" delay N - delay N seconds before executing the next command\n") - + fmt.Printf("\n") fmt.Printf(" save N - save current configuration to slot N\n") fmt.Printf(" load N - load current configuration from slot N\n") diff --git a/mhs5200a.go b/mhs5200a.go index 75fb751..cfe9d87 100644 --- a/mhs5200a.go +++ b/mhs5200a.go @@ -2,24 +2,24 @@ * cmdline utility to configure and control the MHS-5200A series for function generators * * BSD 3-Clause License - * + * * Copyright (c) 2020 - 2021, Peter Skarpetis * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. - * + * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * 3. Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE diff --git a/script.go b/script.go index 2737687..6b9683f 100644 --- a/script.go +++ b/script.go @@ -2,24 +2,24 @@ * cmdline utility to configure and control the MHS-5200A series for function generators * * BSD 3-Clause License - * + * * Copyright (c) 2020 - 2021, Peter Skarpetis * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. - * + * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * 3. Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE