Rev 14 | Rev 16 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14 | Rev 15 | ||
---|---|---|---|
Line 179... | Line 179... | ||
179 | } |
179 | } |
180 | if (ObservationIndex > 0 && i<len) |
180 | if (ObservationIndex > 0 && i<len) |
181 | { |
181 | { |
182 | buff[i++] = ObservationIndex + '1'; |
182 | buff[i++] = ObservationIndex + '1'; |
183 | } |
183 | } |
184 | for(;i<len;i++) |
- | |
185 | { |
- | |
186 | buff[i]=' '; |
- | |
187 | } |
- | |
188 | 184 | ||
189 | print_large_string(buff, 32, 48, len); // this prints spaces for \0 at end of string |
185 | print_large_string(buff, 64-i*4, 48, i); // this prints spaces for \0 at end of string |
190 | 186 | ||
191 | OldObservation[dial] = Observation; |
187 | OldObservation[dial] = Observation; |
192 | OldObservationIndex[dial] = ObservationIndex; |
188 | OldObservationIndex[dial] = ObservationIndex; |
193 | // |
189 | // |
194 | display(); |
190 | display(); |
Line 245... | Line 241... | ||
245 | dial_draw_needle(dial1[dial]); |
241 | dial_draw_needle(dial1[dial]); |
246 | } |
242 | } |
247 | dial_draw_needle(dial0[dial]); |
243 | dial_draw_needle(dial0[dial]); |
248 | // print value overlaid by needle |
244 | // print value overlaid by needle |
249 | // this is actual reading |
245 | // this is actual reading |
250 | print_digits(64 - 16, 30, 4, dp_pos, int_rdg); |
246 | print_digits(20, 30, 5, dp_pos, int_rdg); |
251 | font_gotoxy(0,0); |
247 | font_gotoxy(0,0); |
252 | font_digits(4,dp_pos,int_min); |
248 | font_digits(5,dp_pos,int_min); |
- | 249 | ||
253 | font_gotoxy(0,1); |
250 | font_gotoxy(0,1); |
254 | font_puts("Min"); |
251 | font_puts("Min"); |
255 | 252 | ||
256 | font_gotoxy(17,0); |
253 | font_gotoxy(15,0); |
257 | font_digits(4,dp_pos,int_max); |
254 | font_digits(5,dp_pos,int_max); |
258 | font_gotoxy(18,1); |
255 | font_gotoxy(18,1); |
259 | font_puts("Max"); |
256 | font_puts("Max"); |
260 | 257 | ||
261 | dial1[dial] = dial0[dial]; |
258 | dial1[dial] = dial0[dial]; |
262 | 259 |