Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 467 → Rev 466

/C-OSD/trunk/main.c
72,9 → 72,8
char stats_item_4[] PROGMEM = "max time :";
char stats_item_5[] PROGMEM = "longitude :";
char stats_item_6[] PROGMEM = "latitude :";
char stats_item_7[] PROGMEM = "max current :";
char* stats_item_pointers[] PROGMEM = {stats_item_0, stats_item_1, stats_item_2,
stats_item_3, stats_item_4, stats_item_5, stats_item_6, stats_item_7};
stats_item_3, stats_item_4, stats_item_5, stats_item_6};
 
// store more fixed strings in progmen
char ON[] PROGMEM = "ON ";
152,7 → 151,7
volatile unsigned char * iptr;
volatile unsigned char spi_cmd_buffer[5];
volatile uint8_t spi_ready = 1;
int16_t ampere = 0, max_ampere = 0;
int16_t ampere = 0;
 
/**
* SPI interrupt handler
554,12 → 553,8
if (spi_cmd_buffer[0] == 'd') {
ampere = spi_cmd_buffer[1] << 8;
ampere |= spi_cmd_buffer[2];
// if this is the first receival we should print the small A
if (!(COSD_FLAGS2 & COSD_FLAG_STROMREC)) {
COSD_FLAGS &= ~COSD_ICONS_WRITTEN;
// update this flag
COSD_FLAGS2 |= COSD_FLAG_STROMREC;
}
// update flags
COSD_FLAGS2 |= COSD_FLAG_STROMREC;
//write_ascii_char(8+4*30, 'v'); // valid
} else {
// update flags