machine: fix copy-paste error for atsamd21/51 calibTrim block

Fixes #2097
This commit is contained in:
Damian Gryski
2021-09-09 12:04:43 -07:00
committed by Ron Evans
parent 53794cf339
commit 3eb9dca695
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1958,7 +1958,7 @@ func handlePadCalibration() {
sam.USB_DEVICE.PADCAL.SetBits(calibTransP << sam.USB_DEVICE_PADCAL_TRANSP_Pos)
if calibTrim == 0x7 {
calibTransN = 3
calibTrim = 3
}
sam.USB_DEVICE.PADCAL.SetBits(calibTrim << sam.USB_DEVICE_PADCAL_TRIM_Pos)
}
+1 -1
View File
@@ -2167,7 +2167,7 @@ func handlePadCalibration() {
sam.USB_DEVICE.PADCAL.SetBits(calibTransP << sam.USB_DEVICE_PADCAL_TRANSP_Pos)
if calibTrim == 0x7 {
calibTransN = 3
calibTrim = 3
}
sam.USB_DEVICE.PADCAL.SetBits(calibTrim << sam.USB_DEVICE_PADCAL_TRIM_Pos)
}