Laser generation control method for optical reader