FujiNetWIFI / fujinet-config-tools

Atari side programs for configuring FujiNet
10 stars 12 forks source link

Fix fconfig alignment by outputting single hex bytes with leading zero #7

Closed markjfisher closed 4 years ago

markjfisher commented 4 years ago

Where MAC address and BSSID had bytes under 16, the output would be misaligned, as previously the output was assuming fixed length strings for each byte.

This commit prefixes values under $10 with a leading 0, and also uses CRs to separate each output line, ensuring no assumptions are made about the target's screen width (e.g. 80 column displays).