I can see why the codes would need to change now and then. I mean if the enemy keeps noticing the same flag movements right before your ship does something it wouldn't be all that much of a leap to figure out that was what those meant.
They treated the wounds though from the beatings right?