Ok, it is getting weirder here!
I have always used Eclipse with the Bela Salt, in my Eclipse Bela setup I have that code for BelaHw_Salt in Pru..cpp. Line 1219. So looks like I have an older version there.
The test I did today I just used the Bela IDE.
On the Salt PRU.cpp doesn't contain a single BelaHw_Salt!
The Salt is on the dev-modular branch.
What branch should I be using?