Rev 7 | Rev 9 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 7 | Rev 8 | ||
|---|---|---|---|
| Line 123... | Line 123... | ||
| 123 | { |
123 | { |
| 124 | dial1[dial] = -1; |
124 | dial1[dial] = -1; |
| 125 | OldObservation[dial] = -1; |
125 | OldObservation[dial] = -1; |
| 126 | OldObservationIndex[dial] = -1; |
126 | OldObservationIndex[dial] = -1; |
| 127 | 127 | ||
| 128 | drawLine(0,0,127,63,1); |
128 | clearDisplay(); |
| 129 | // display(); |
129 | display(); |
| 130 | return -1; // we suppressed this display |
130 | return -1; // we suppressed this display |
| 131 | } |
131 | } |
| 132 | // do not try to convert if no items in buffer |
132 | // do not try to convert if no items in buffer |
| 133 | if (PLXItems > 0) |
133 | if (PLXItems > 0) |
| 134 | { |
134 | { |
| Line 268... | Line 268... | ||
| 268 | /* USER CODE BEGIN 2 */ |
268 | /* USER CODE BEGIN 2 */ |
| 269 | /* Need to set AF mode for output pins DURR. */ |
269 | /* Need to set AF mode for output pins DURR. */ |
| 270 | /* SPI bus AF pin selects */ |
270 | /* SPI bus AF pin selects */ |
| 271 | GPIO_InitStruct.Speed = GPIO_SPEED_HIGH; |
271 | GPIO_InitStruct.Speed = GPIO_SPEED_HIGH; |
| 272 | 272 | ||
| 273 | GPIO_InitStruct.Pin = GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_7; |
273 | GPIO_InitStruct.Pin = GPIO_PIN_5 | GPIO_PIN_7; |
| 274 | GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; |
274 | GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; |
| 275 | HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); |
275 | HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); |
| 276 | 276 | ||
| 277 | /* USART2 AF pin selects */ |
277 | /* USART2 AF pin selects */ |
| 278 | GPIO_InitStruct.Pin = GPIO_PIN_2; |
278 | GPIO_InitStruct.Pin = GPIO_PIN_2; |