diff --git a/src/RotCtl.zig b/src/RotCtl.zig index 3dffebc..4520205 100644 --- a/src/RotCtl.zig +++ b/src/RotCtl.zig @@ -177,7 +177,6 @@ fn handleHamlibCommand( if (first.len == 1 or first[0] == '\\') { switch (first[0]) { // NOTE: this is not technically supported by rotctld. - 'q', 'Q' => try self.quit(first, &tokens), 'S' => try self.stop(first, &tokens), 'K' => try self.park(first, &tokens), 'p' => try self.getPosition(first, &tokens), @@ -248,8 +247,8 @@ const HamlibCommand = struct { }; const rotctl_commands = [_]HamlibCommand{ - .{ .short = 'q', .callback = quit }, // quit - .{ .short = 'Q', .callback = quit }, // quit + .{ .long = "quit", .callback = quit }, + .{ .long = "exit", .callback = quit }, .{ .long = "AOS", .callback = blindAck }, .{ .long = "LOS", .callback = blindAck }, .{ .short = 'P', .long = "set_pos", .callback = setPosition }, // azimuth: f64, elevation: f64