Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 466 → Rev 467

/C-OSD/trunk/main.c
72,8 → 72,9
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_3, stats_item_4, stats_item_5, stats_item_6, stats_item_7};
 
// store more fixed strings in progmen
char ON[] PROGMEM = "ON ";
151,7 → 152,7
volatile unsigned char * iptr;
volatile unsigned char spi_cmd_buffer[5];
volatile uint8_t spi_ready = 1;
int16_t ampere = 0;
int16_t ampere = 0, max_ampere = 0;
 
/**
* SPI interrupt handler
553,8 → 554,12
if (spi_cmd_buffer[0] == 'd') {
ampere = spi_cmd_buffer[1] << 8;
ampere |= spi_cmd_buffer[2];
// update flags
COSD_FLAGS2 |= COSD_FLAG_STROMREC;
// 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;
}
//write_ascii_char(8+4*30, 'v'); // valid
} else {
// update flags