wip modem/tests

This commit is contained in:
2025-06-10 16:23:01 +02:00
parent ecf5fb46a0
commit 49a4642db2
10 changed files with 207 additions and 57 deletions

View File

@ -181,7 +181,7 @@ func (c *Client) GetNTRIPMountPoint(ctx context.Context) error {
return nil
}
// GetNTRIPMountPoint implements protocol.Operations.
// SetBaseCorrections implements protocol.Operations.
func (c *Client) SetBaseCorrections(ctx context.Context, funcs ...protocol.SetBaseCorrectionsFunc) error {
_, ops, err := c.getProtocol(ctx)
if err != nil {
@ -194,4 +194,17 @@ func (c *Client) SetBaseCorrections(ctx context.Context, funcs ...protocol.SetBa
return nil
}
// SetModem implements protocol.Operations.
func (c *Client) SetModem(ctx context.Context, funcs ...protocol.SetModemOptionsFunc) error {
_, ops, err := c.getProtocol(ctx)
if err != nil {
return errors.WithStack(err)
}
if err := ops.SetModem(ctx, funcs...); err != nil {
return errors.WithStack(err)
}
return nil
}
var _ protocol.Operations = &Client{}