Compare commits

..

No commits in common. "1a541c71eaa142bb50a65bfea0a865fc6c754023" and "adc2997f0dc613816b432906bf2e9bc1b82d5f11" have entirely different histories.

2 changed files with 3 additions and 7 deletions

View File

@ -80,8 +80,8 @@ pub const RotInt = struct {
offsets: AzEl = .{ .az = 0, .el = 0 }, offsets: AzEl = .{ .az = 0, .el = 0 },
requested_posture: AzEl = .{ .az = 0, .el = 0 }, requested_posture: AzEl = .{ .az = 0, .el = 0 },
current_posture: AzEl = .{ .az = 0, .el = 0 }, current_posture: AzEl = .{ .az = 0, .el = 0 },
poll_interval: u64 = 500, poll_interval: u64 = 100,
command_freq: u8 = 4, command_freq: u8 = 10,
pollcount: u9 = 0, pollcount: u9 = 0,
state: State = .initial, state: State = .initial,
@ -121,8 +121,6 @@ pub const RotInt = struct {
self.warn("rotator connected", .{}); self.warn("rotator connected", .{});
self.sendRotatorCommand(.get_position); self.sendRotatorCommand(.get_position);
self.state = .rotator_connected; self.state = .rotator_connected;
self.vx.queueRefresh();
self.draw() catch {};
}, },
.rotator_ready => if (self.state == .rotator_connected) { .rotator_ready => if (self.state == .rotator_connected) {
self.warn("rotator ready", .{}); self.warn("rotator ready", .{});

View File

@ -218,9 +218,7 @@ pub const Client = struct {
_ = result catch |err| { _ = result catch |err| {
self.rotint.warn("connect failed {}", .{err}); self.rotint.warn("connect failed {}", .{err});
// Note: this loops instantaneously if the target address is on localhost // retry bayeb
// and is not being listened on. Actually just straight up crashes on macOS.
// Probably need to use a timer to handle this better
return .rearm; return .rearm;
}; };