A photoelectric study of u Herculis