Merge pull request #6 from smunaut/mpw7

scan_controller: Fix off-by-one