More organization - need to use the new flow for probing

This commit is contained in:
2025-12-15 23:47:01 +00:00
parent 3ffad42922
commit 65b915c3ff
8 changed files with 146 additions and 40 deletions
+3 -2
View File
@@ -2,6 +2,7 @@ package peripheral
import (
comm "esdi/peripheral/communication"
pack "esdi/peripheral/communication/packets"
"esdi/peripheral/devices"
"time"
@@ -71,7 +72,7 @@ func (p *PeripheralDevice) Probe() error {
}
// Verify the papers
var pkt IdentificationPacket
var pkt pack.IdentificationPacket
err = pkt.Read(p.WT)
if err != nil {
// Throw the man in the gulag!
@@ -96,7 +97,7 @@ func (p *PeripheralDevice) ToConnectedIdling() {
p.CommState = comm.CommIdle
}
func (p *PeripheralDevice) Merge(packet *IdentificationPacket) {
func (p *PeripheralDevice) Merge(packet *pack.IdentificationPacket) {
p.Name = string(packet.Name[:])
p.ID = packet.DeviceID
}