main: full redraw on initial connection
This seems to help if rotint is started before rotctld (which just crashes on mac).
This commit is contained in:
parent
7bdea9644c
commit
1a541c71ea
@ -121,6 +121,8 @@ pub const RotInt = struct {
|
||||
self.warn("rotator connected", .{});
|
||||
self.sendRotatorCommand(.get_position);
|
||||
self.state = .rotator_connected;
|
||||
self.vx.queueRefresh();
|
||||
self.draw() catch {};
|
||||
},
|
||||
.rotator_ready => if (self.state == .rotator_connected) {
|
||||
self.warn("rotator ready", .{});
|
||||
|
@ -218,7 +218,9 @@ pub const Client = struct {
|
||||
|
||||
_ = result catch |err| {
|
||||
self.rotint.warn("connect failed {}", .{err});
|
||||
// retry bayeb
|
||||
// Note: this loops instantaneously if the target address is on localhost
|
||||
// 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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user