toolbox

Check-in [e9fdbcbff2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:lib: cosmetic changes
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e9fdbcbff2cc904ed4d3c10ec6072fd98290346e53e34bc9e58d3d3cb45febbc
User & Date: jef 2020-07-19 17:15:36
Context
2020-07-19
17:15
retab: cosmetic changes check-in: 31342d5054 user: jef tags: trunk
17:15
lib: cosmetic changes check-in: e9fdbcbff2 user: jef tags: trunk
09:16
lib: cosmetic changes check-in: 8dbe9c62f5 user: jef tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/lib/printtime.c.

169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
		if (number == 0) {
			display[dspsize++] = &leds[0];
			display[dspsize++] = &leds[0];
		} else if (number < 10) {
			display[dspsize++] = &leds[number];
			display[dspsize++] = &leds[0];
			number = 0;
			} else {
			while (number > 0 && dspsize < dsplen) {
				display[dspsize++] = &leds[number % 10];
				number /= 10;
			}
		}
		if (i == 0)
			display[dspsize++] = &leds[10];







|







169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
		if (number == 0) {
			display[dspsize++] = &leds[0];
			display[dspsize++] = &leds[0];
		} else if (number < 10) {
			display[dspsize++] = &leds[number];
			display[dspsize++] = &leds[0];
			number = 0;
		} else {
			while (number > 0 && dspsize < dsplen) {
				display[dspsize++] = &leds[number % 10];
				number /= 10;
			}
		}
		if (i == 0)
			display[dspsize++] = &leds[10];