Skip to content

Commit

Permalink
ticks argument from spin1 starts at 1
Browse files Browse the repository at this point in the history
As identified in project-rig/rig_examples#4.
  • Loading branch information
mundya committed Nov 23, 2015
1 parent bad4b69 commit 3dc2260
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 6 deletions.
Binary file modified nengo_spinnaker/binaries/nengo_ensemble.aplx
Binary file not shown.
Binary file modified nengo_spinnaker/binaries/nengo_ensemble_profiled.aplx
Binary file not shown.
Binary file modified nengo_spinnaker/binaries/nengo_filter.aplx
Binary file not shown.
Binary file modified nengo_spinnaker/binaries/nengo_mc_player.aplx
Binary file not shown.
Binary file modified nengo_spinnaker/binaries/nengo_rx.aplx
Binary file not shown.
Binary file modified nengo_spinnaker/binaries/nengo_tx.aplx
Binary file not shown.
Binary file modified nengo_spinnaker/binaries/nengo_value_sink.aplx
Binary file not shown.
Binary file modified nengo_spinnaker/binaries/nengo_value_source.aplx
Binary file not shown.
2 changes: 1 addition & 1 deletion spinnaker_components/ensemble/ensemble_update.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
void ensemble_update(uint ticks, uint arg1) {
use(arg1);

if (simulation_ticks != UINT32_MAX && ticks >= simulation_ticks) {
if (simulation_ticks != UINT32_MAX && ticks > simulation_ticks) {
profiler_finalise();
spin1_exit(0);
return;
Expand Down
2 changes: 1 addition & 1 deletion spinnaker_components/filter/filter_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void process_transform_page(uint transfer_id, uint tag)
void filter_update(uint ticks, uint arg1)
{
use(arg1);
if (simulation_ticks != UINT32_MAX && ticks >= simulation_ticks)
if (simulation_ticks != UINT32_MAX && ticks > simulation_ticks)
{
spin1_exit(0);
return;
Expand Down
2 changes: 1 addition & 1 deletion spinnaker_components/mc_player/mc_player_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void transmit_packet_region(uint* packets_region) {
void tick(uint ticks, uint arg1) {
use(arg1);

if (simulation_ticks != UINT32_MAX && ticks >= simulation_ticks) {
if (simulation_ticks != UINT32_MAX && ticks > simulation_ticks) {
// Transmit all packets assigned to be sent after the end of the simulation
transmit_packet_region(end_packets);
spin1_exit(0);
Expand Down
2 changes: 1 addition & 1 deletion spinnaker_components/sdp_rx/sdp-rx-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sdp_rx_parameters_t g_sdp_rx;
*/
void sdp_rx_tick(uint ticks, uint arg1) {
use(arg1);
if (simulation_ticks != UINT32_MAX && ticks >= simulation_ticks) {
if (simulation_ticks != UINT32_MAX && ticks > simulation_ticks) {
spin1_exit(0);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion spinnaker_components/value_sink/value_sink.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if_collection_t g_input;

void sink_update(uint ticks, uint arg1) {
use(arg1);
if (simulation_ticks != UINT32_MAX && ticks >= simulation_ticks) {
if (simulation_ticks != UINT32_MAX && ticks > simulation_ticks) {
spin1_exit(0);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion spinnaker_components/value_source/value_source.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ uint us_delay;

void valsource_tick(uint ticks, uint arg1) {
use(arg1);
if (simulation_ticks != UINT32_MAX && ticks >= simulation_ticks) {
if (simulation_ticks != UINT32_MAX && ticks > simulation_ticks) {
spin1_exit(0);
return;
}
Expand Down

0 comments on commit 3dc2260

Please sign in to comment.