Skip to content

Commit

Permalink
more doc
Browse files Browse the repository at this point in the history
  • Loading branch information
orgua committed Apr 27, 2024
1 parent 02be8d5 commit f7416c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion software/kernel-module/src/pru_sync_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void sync_start(void)
}

hrtimer_start(&trigger_loop_timer, ts_now_kt + ns_to_ktime(ns_to_next_trigger),
HRTIMER_MODE_ABS); // was: HRTIMER_MODE_ABS_HARD for -rt Kernel
HRTIMER_MODE_ABS); // was: HRTIMER_MODE_ABS_HARD for -rt Kernel

hrtimer_start(&sync_loop_timer, ts_now_kt + ns_to_ktime(1000000), HRTIMER_MODE_ABS);
printk(KERN_INFO "shprd.k: pru-sync-system started");
Expand Down
2 changes: 1 addition & 1 deletion software/python-package/shepherd_sheep/h5_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def _add_omitted_timestamps(self) -> None:
)
self.grp_data["time"].resize((meta_time_size,))
data_pos = 0
for buf_iter in range(self.grp_data["meta"].shape(0)):
for buf_iter in range(self.grp_data["meta"].shape[0]):
buf_ts_ns, buf_len = self.grp_data["meta"][buf_iter, :2]
self.grp_data["time"][data_pos : data_pos + buf_len] = (
self.buffer_timeseries + buf_ts_ns
Expand Down
1 change: 1 addition & 0 deletions software/shepherd-herd/shepherd_herd/herd_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def blink(ctx: click.Context, duration: int) -> None:
@click.pass_context
def run(ctx: click.Context, config: Path, attach: bool) -> None:
with ctx.obj["herd"] as herd:
log.info("Starting to resync sheep")
exit_code = herd.resync()
if exit_code == 0:
exit_code = herd.run_task(config, attach=attach)
Expand Down

0 comments on commit f7416c7

Please sign in to comment.