this has been tested and worked on mine after i replaced the brake wear sensor...the brake warning light stays on..
BMW BRAKE WARNING LIGHT RESET
Make sure that you replaced the sensor and the brake pads if you did not replace the sensor or pads this will not work. Turn the key to position two (when all of the inspection lights are lit), leave it in this position and leave your driver’s door open a few seconds (between 15 to 90 seconds depending on your car) and it magically resets. If that did not work turn the key to position two and push down on the brake then turn the key off and check to see if it turns off (door must also be open). If this still does not work press down on your brake (hold it pushed down) and turn the key to position two and wait until it turns off. If none of these work please go back and check that you installed the sensor correctly.
cheers
swamps
BMW BRAKE WARNING LIGHT RESET
Make sure that you replaced the sensor and the brake pads if you did not replace the sensor or pads this will not work. Turn the key to position two (when all of the inspection lights are lit), leave it in this position and leave your driver’s door open a few seconds (between 15 to 90 seconds depending on your car) and it magically resets. If that did not work turn the key to position two and push down on the brake then turn the key off and check to see if it turns off (door must also be open). If this still does not work press down on your brake (hold it pushed down) and turn the key to position two and wait until it turns off. If none of these work please go back and check that you installed the sensor correctly.
cheers
swamps