Skip to content

Commit 2b1474b

Browse files
committed
Update Copyright for 2024.
1 parent fbacf41 commit 2b1474b

9 files changed

+21
-11
lines changed

constants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2020 The usbtmc developers. All rights reserved.
1+
// Copyright (c) 2015-2024 The usbtmc developers. All rights reserved.
22
// Project site: https://github.com/gotmc/usbtmc
33
// Use of this source code is governed by a MIT-style license that
44
// can be found in the LICENSE.txt file for the project.

constants_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2020 The usbtmc developers. All rights reserved.
1+
// Copyright (c) 2015-2024 The usbtmc developers. All rights reserved.
22
// Project site: https://github.com/gotmc/usbtmc
33
// Use of this source code is governed by a MIT-style license that
44
// can be found in the LICENSE.txt file for the project.

context.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2020 The usbtmc developers. All rights reserved.
1+
// Copyright (c) 2015-2024 The usbtmc developers. All rights reserved.
22
// Project site: https://github.com/gotmc/usbtmc
33
// Use of this source code is governed by a MIT-style license that
44
// can be found in the LICENSE.txt file for the project.

device.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2020 The usbtmc developers. All rights reserved.
1+
// Copyright (c) 2015-2024 The usbtmc developers. All rights reserved.
22
// Project site: https://github.com/gotmc/usbtmc
33
// Use of this source code is governed by a MIT-style license that
44
// can be found in the LICENSE.txt file for the project.

doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2020 The usbtmc developers. All rights reserved.
1+
// Copyright (c) 2015-2024 The usbtmc developers. All rights reserved.
22
// Project site: https://github.com/gotmc/usbtmc
33
// Use of this source code is governed by a MIT-style license that
44
// can be found in the LICENSE.txt file for the project.

helpers.go

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2020 The usbtmc developers. All rights reserved.
1+
// Copyright (c) 2015-2024 The usbtmc developers. All rights reserved.
22
// Project site: https://github.com/gotmc/usbtmc
33
// Use of this source code is governed by a MIT-style license that
44
// can be found in the LICENSE.txt file for the project.
@@ -76,7 +76,12 @@ func encodeBulkOutHeader(bTag byte, transferSize uint32, eom bool) [12]byte {
7676

7777
// Create the requestDevDepMsgIn Bulk-OUT Header with command specific
7878
// content as shown in USBTMC Table 4.
79-
func encodeMsgInBulkOutHeader(bTag byte, transferSize uint32, termCharEnabled bool, termChar byte) [12]byte {
79+
func encodeMsgInBulkOutHeader(
80+
bTag byte,
81+
transferSize uint32,
82+
termCharEnabled bool,
83+
termChar byte,
84+
) [12]byte {
8085
// Offset 0-3: See Table 1.
8186
prefix := encodeBulkHeaderPrefix(bTag, requestDevDepMsgIn)
8287
// Offset 4-7: TransferSize

helpers_test.go

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2020 The usbtmc developers. All rights reserved.
1+
// Copyright (c) 2015-2024 The usbtmc developers. All rights reserved.
22
// Project site: https://github.com/gotmc/usbtmc
33
// Use of this source code is governed by a MIT-style license that
44
// can be found in the LICENSE.txt file for the project.
@@ -139,7 +139,12 @@ func TestEncodeMsgInBulkOutHeader(t *testing.T) {
139139
},
140140
}
141141
for _, test := range tests {
142-
result := encodeMsgInBulkOutHeader(test.bTag, test.transferSize, test.termCharEnabled, test.termChar)
142+
result := encodeMsgInBulkOutHeader(
143+
test.bTag,
144+
test.transferSize,
145+
test.termCharEnabled,
146+
test.termChar,
147+
)
143148
if result != test.desired {
144149
t.Errorf("BulkOutHeader == %x, want %x", result, test.desired)
145150
}

libusb.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2020 The usbtmc developers. All rights reserved.
1+
// Copyright (c) 2015-2024 The usbtmc developers. All rights reserved.
22
// Project site: https://github.com/gotmc/usbtmc
33
// Use of this source code is governed by a MIT-style license that
44
// can be found in the LICENSE.txt file for the project.

visa_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2020 The usbtmc developers. All rights reserved.
1+
// Copyright (c) 2015-2024 The usbtmc developers. All rights reserved.
22
// Project site: https://github.com/gotmc/usbtmc
33
// Use of this source code is governed by a MIT-style license that
44
// can be found in the LICENSE.txt file for the project.

0 commit comments

Comments
 (0)