Skip to content

Commit

Permalink
Ran go fmt to fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
peterska committed Jan 26, 2021
1 parent db60480 commit 65e0d19
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand All @@ -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")
Expand Down
12 changes: 6 additions & 6 deletions mhs5200a.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions script.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65e0d19

Please sign in to comment.