Some people use their coffee grinders to grind more than just coffee, but if you have used it to grind up some strong smelling spices, you will want to clean it before going back to grinding your coffee up.
To get rid of strong odors and flavors, grab a handful of cheerios and put them through your grinder for about 30 seconds. The cheerios act as an odor absorber.
If you don't have cheerios another options is to place a small charcoal briquette into your grinder (do not turn grinder on) cover with a paper bag and let it sit overnight. Charcoal is known as an odor absorber (many filters have charcoal in them) and this will help to absorb some of the odors out of your grinder for you.
With out the extra odors from any spices that you've used your coffee grinder on, your next cup of coffee from your percolator coffee pot should taste just how you like it.