Skip to content

Commit

Permalink
Fix a bug where pending sensor operations will result in changing the…
Browse files Browse the repository at this point in the history
… download target from a capture once the pending operation returns. Extremely noticeable on the FbF sensor where /configure can take upwards of one minute. Related to #170.
  • Loading branch information
gfiumara committed Apr 12, 2013
1 parent 293e382 commit 94281fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -828,12 +828,12 @@ -(void) showCapturePopoverAtIndex:(int) index
//grab the lock and try to configure the sensor
[link setConfiguration:link.currentSessionId
withParameters:params
deviceID:[activeCell.item.objectID URIRepresentation]];
deviceID:[targetItem.objectID URIRepresentation]];
}
else {
//Something's up, and the sensor was not properly initialized. Try again, starting from reconnecting.
[link beginConnectConfigureSequenceWithConfigurationParams:params
deviceID:[activeCell.item.objectID URIRepresentation]];
deviceID:[targetItem.objectID URIRepresentation]];
}

// No way to know the arrow direction until the popover is shown once,
Expand Down
1 change: 1 addition & 0 deletions wsabi2/views/personList/source/BWSViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ - (void)popoverControllerDidDismissPopover:(UIPopoverController *)aPopoverContro
{
BWSPersonTableViewCell *activeCell = (BWSPersonTableViewCell*)[self.tableView cellForRowAtIndexPath:[self.tableView indexPathForSelectedRow]];
[activeCell selectItem:nil]; //clear selection
activeCell = nil;
[self.view logPopoverControllerDismissed:aPopoverController];
}

Expand Down

0 comments on commit 94281fb

Please sign in to comment.