finally works again

master
Dario Ernst 15 years ago
parent c1fcceee0a
commit bd37b567a3

@ -11,6 +11,10 @@
#define LCD_CHAR_DEGREE 0x03 #define LCD_CHAR_DEGREE 0x03
#define LCD_CHAR_BLANK 0x20 #define LCD_CHAR_BLANK 0x20
extern uint8_t newThermoData1;
extern uint16_t thermoData[];
extern const prog_uint8_t lcd_halfbar_char[]; extern const prog_uint8_t lcd_halfbar_char[];
extern const prog_uint8_t lcd_bar_char[]; extern const prog_uint8_t lcd_bar_char[];
extern const prog_uint8_t lcd_degree_char[]; extern const prog_uint8_t lcd_degree_char[];

@ -1,5 +1,9 @@
#include "main.h" #include "main.h"
uint8_t newThermoData = 1;
uint16_t thermoData[] = {1024, 814, 2475, 2243};
volatile uint16_t timer1_acc; volatile uint16_t timer1_acc;
uint16_t softtimer_last[SOFTTIMERNUMS]; uint16_t softtimer_last[SOFTTIMERNUMS];
@ -70,7 +74,7 @@ int __attribute__((noreturn)) main(void) {
newThermoData = 1; newThermoData = 1;
} }
SOFTTIMER(1,100) { SOFTTIMER(1,250) {
updateTemperature(); updateTemperature();
} }

@ -26,8 +26,8 @@
#include "spi.h" #include "spi.h"
#include "usb.h" #include "usb.h"
static uint8_t newThermoData = 1; extern uint8_t newThermoData;
static uint16_t thermoData[] = {1024, 814, 2475, 2243}; extern uint16_t thermoData[];
#define SOFTTIMERNUMS 4 #define SOFTTIMERNUMS 4

Loading…
Cancel
Save