4 ms·
if (cpu == A) do code else if (cpu == B) do other code They invited the multiple combination vampire into their house. They know what devices are being used.
by dylan604 3y ago
if (cpu == A) do code
else if (cpu == B) do other code
They invited the multiple combination vampire into their house. They know what devices are being used. If you don't want a dedicated update per piece of equipment, it'll be a large binary with lots of branching. Saying they don't know what device is where is just lazy. Ask the device what it is, and have a branch for it. If the device IDs itself as something unknown, don't do anything.