comparison testavr.c @ 16:026dc24d85e0 AVR_1_3

Spell presence correctly.
author darius
date Sat, 17 Sep 2005 18:31:19 +0930
parents 0940abdf2b9d
children a58b41b7d15c
comparison
equal deleted inserted replaced
15:0940abdf2b9d 16:026dc24d85e0
125 125
126 if (cmdbuf[0] == 'r' && cmdbuf[1] == 's') { 126 if (cmdbuf[0] == 'r' && cmdbuf[1] == 's') {
127 uart_putsP(PSTR("Resetting... ")); 127 uart_putsP(PSTR("Resetting... "));
128 128
129 if (OWTouchReset() == 1) 129 if (OWTouchReset() == 1)
130 uart_putsP(PSTR("No presense pulse found\n\r")); 130 uart_putsP(PSTR("No presence pulse found\n\r"));
131 else 131 else
132 uart_putsP(PSTR("Presense pulse found\n\r")); 132 uart_putsP(PSTR("Presence pulse found\n\r"));
133 } else if (cmdbuf[0] == 'r' && cmdbuf[1] == 'e') { 133 } else if (cmdbuf[0] == 'r' && cmdbuf[1] == 'e') {
134 if (OWReadBit()) 134 if (OWReadBit())
135 uart_putsP(PSTR("Read a 1\n\r")); 135 uart_putsP(PSTR("Read a 1\n\r"));
136 else 136 else
137 uart_putsP(PSTR("Read a 0\n\r")); 137 uart_putsP(PSTR("Read a 0\n\r"));
261 261
262 i = OWFirst(ROM, 1, 0); 262 i = OWFirst(ROM, 1, 0);
263 do { 263 do {
264 switch (i) { 264 switch (i) {
265 case OW_BADWIRE: 265 case OW_BADWIRE:
266 uart_putsP(PSTR("Presense pulse, but no module found, bad module/cabling?\n\r")); 266 uart_putsP(PSTR("Presence pulse, but no module found, bad module/cabling?\n\r"));
267 break; 267 break;
268 268
269 case OW_NOPRESENCE: 269 case OW_NOPRESENCE:
270 uart_putsP(PSTR("No presense pulse found\n\r")); 270 uart_putsP(PSTR("No presence pulse found\n\r"));
271 break; 271 break;
272 272
273 case OW_BADCRC: 273 case OW_BADCRC:
274 uart_putsP(PSTR("Bad CRC\n\r")); 274 uart_putsP(PSTR("Bad CRC\n\r"));
275 break; 275 break;