Skip to content

Commit

Permalink
clear event_flags at reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bonani committed Sep 20, 2016
1 parent 4f12557 commit a08f8e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,8 @@ void AsebaVMResetCB(AsebaVMState *vm) {
behavior_start(B_LEDS_MIC);
behavior_start(B_LEDS_RC5);
prox_disable_network();
events_flags[0] = 0;

This comment has been minimized.

Copy link
@stephanemagnenat

stephanemagnenat Sep 20, 2016

Wrong indentation, should be one tab, but rather is 4 spaces.

events_flags[1] = 0;
memset(vm->variables, 0, vm->variablesSize*sizeof(sint16));
vmVariables.id = vmState.nodeId;
vmVariables.productid = PRODUCT_ID;
Expand Down

0 comments on commit a08f8e0

Please sign in to comment.