When you clone the Teletype repo, what you need to do is change the origin of the submodule to point somewhere else, that way when you git push it will create it there instead of at Monome. (git push defaults to origin as the remote, unless told otherwise)
cd libavr32
git remote set-url origin https://github.com/scannerdarkly/libavr32.git # assuming this exists
git remote add upstream https://github.com/monome/libavr32.git # so you can fetch from 'upstream'
On the one hand I always feel bad about setting it up this way, as the submodules always cause confusion. On the other hand, learning how to use git is definitely a transferable skill!
This is the example I had in mind:
// in file 1
void set_cv() {
irqs_pause();
do_something();
irqs_resume();
}
// in file 2
void run_script() {
irqs_pause();
set_cv(); // uh oh!
irqs_resume();
}
A call to run_script will cause problems. There is no code in there like that now, but if it were introduced later…
That’s brilliant progress, but I do feel your pain too. Do you have a gut feeling as to what change has made the biggest improvement?