cherry picked detectPeaks update from develop
cherry picked detectPeaks update from develop

BrewPi/firmware,glibersat/firmware,etk29321/firmware,BrewPi/firmware,etk29321/firmware,BrewPi/firmware,glibersat/firmware,etk29321/firmware,etk29321/firmware,BrewPi/firmware,BrewPi/firmware,glibersat/firmware,BrewPi/firmware,etk29321/firmware,glibersat/firmware,glibersat/firmware,etk29321/firmware,glibersat/firmware,BrewPi/firmware,BrewPi/firmware,glibersat/firmware