On Wed Sep 3 20:23:11 2025 +0000, Ivan Lyugaev wrote:
You're right, the printer initially uses the default settings (sane settings). But it is important to note here that this fragment is necessary at the first contact with the scanner for the initial initialization of the registry. If the registry key does not exist, it is first initialized with the current (default) settings, and then changes are made to it.
I don't think it is necessary to create the key here because `save_to_reg` will already create it as needed, and any settings missing from the registry will mean we leave the default in place.
If it were necessary, we would have a problem, because there is a possibility of a registry key being created without all the settings (if for some reason the process is interrupted), or new settings being added later.