view Small_CPU/Inc/uart.h @ 213:d539ed9aa5b8 edit-fix

Bugfix, trivial: do not visit 9 on first digit for setpoint When editing a setpoint, and hitting the "-" button, the digit sequence was 1, 0, 9, 1, ... So, one could enter a setpoint of 9.5 bar (that is later automatically clamped between 0.5 and 1.6). This simply looks strange, so fix it. Now, hitting "+" and "-" behave symmetrical. At the same time, kick out some unused code. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Wed, 27 Mar 2019 15:12:26 +0100
parents 5f11787b4f42
children 1b995079c045
line wrap: on
line source

/**
  ******************************************************************************
  * @file    uart.h
  * @author  heinrichs weikamp gmbh
  * @version V0.0.1
  * @date    27-March-2014
  * @brief   button control
  *           
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; COPYRIGHT(c) 2015 heinrichs weikamp</center></h2>
  *
  ******************************************************************************
  */ 

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef UART_H
#define UART_H

#ifdef __cplusplus
 extern "C" {
#endif

#include "stm32f4xx_hal.h"

void MX_USART2_UART_Init(void);
void MX_USART2_UART_DeInit(void);
uint8_t UART_ButtonAdjust(uint8_t *array);


#ifdef __cplusplus
}
#endif

#endif /* UART_H */

/************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/