and boom, that was an easy fix...
simply changing the order of the trill settings in setup makes it work on reboot!
so, this does only work on upload, but not on reboot:
trillSensor.setAutoScanInterval(1);
delay(Trill::interCommandDelay);
trillSensor.setScanSettings(0, 9);
delay(Trill::interCommandDelay);
trillSensor.setPrescaler(1);
delay(Trill::interCommandDelay);
trillSensor.setMode(Trill::DIFF);
delay(Trill::interCommandDelay);
trillSensor.setNoiseThreshold(8);
delay(Trill::interCommandDelay);
trillSensor.setAutoScanInterval(1);
delay(Trill::interCommandDelay);
while this works all the time, even after unplug/replug:
trillSensor.setAutoScanInterval(1);
delay(Trill::interCommandDelay);
trillSensor.setScanSettings(0, 9);
delay(Trill::interCommandDelay);
trillSensor.setPrescaler(1);
delay(Trill::interCommandDelay);
trillSensor.setMode(Trill::DIFF);
delay(Trill::interCommandDelay);
trillSensor.setNoiseThreshold(8);
delay(Trill::interCommandDelay);
probably either a timing issue (although i tried inserting larger delays at different points in the setup) or an incompatibility between two of the settings, one overriding the other.
or is this expected, because i did something wrong with the setup procedure?