Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[kernel] - fix for continue. If mid-programming, writing to the conti…
…nue interface will

now reset (and arm) the pulseblaster.
Previously, writing to "program" and then to "continue" wouldn't start execution; now it does.
  • Loading branch information
Richard Neill committed Jan 19, 2011
1 parent 92b2958 commit 6f1f568
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kernel/pulseblaster.c
Expand Up @@ -308,6 +308,12 @@ static int pb_continue(struct pulseblaster *pb)
{
int rc;

if (pb->offset != 0) {
rc = pb_cmd_finished(pb);
if (rc)
return rc;
pb->offset = 0;
}
rc = pb_cmd_start(pb);
if (rc)
return rc;
Expand Down

0 comments on commit 6f1f568

Please sign in to comment.