Compiling RTK Surevyor firmware with WiFi support results in sdCardCapacity error

When trying to compile the RTK Surveyor firmware with WiFi support I get the error message: sdCardCapacity was not declared

Indeed sdCardCapacity can only be found once, it is in the Form tab.

What to do next?

This has been solved in firmware v 2.3.

See the answer to my post: Can not update RTK Surveyor