mirror of
https://github.com/soypat/lora.git
synced 2026-08-18 11:33:55 +00:00
receiver loops forever; add errWrap
This commit is contained in:
+2
-2
@@ -479,8 +479,8 @@ func (d *DeviceLoRa) RxContinuous(ctx context.Context, fn rxCallback) error {
|
||||
if err != nil {
|
||||
return err
|
||||
} else if op != OpRx {
|
||||
return errors.New("unexpected op mode change during RxContinuous to " +
|
||||
op.String() + " with irqs:" + irqFlagsString(irq))
|
||||
return d.wrapErr(errors.New("unexpected op mode change during RxContinuous to " +
|
||||
op.String() + " with irqs:" + irqFlagsString(irq)))
|
||||
}
|
||||
}
|
||||
return ctx.Err()
|
||||
|
||||
Reference in New Issue
Block a user