Ignore:
Timestamp:
May 12, 2011, 5:47:17 PM (9 years ago)
Author:
neise
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • firmware/FSC/src/output.c

    r10674 r10677  
    66void print_status() {
    77        usart_write_str((pU08)"adc status:\n");
    8         for (U08 i=0; i< V_BITMAP + I_BITMAP + H_BITMAP;++i) {
     8        for (U08 i=0; i< VOLTAGE_CHANNELS/8;++i) {
    99                usart_write_U08_bin(adc_enables[i]);   
    1010                usart_write_char(' ');
    1111        }
    1212        usart_write_char('\n');
    13         for (U08 i=0; i< V_BITMAP + I_BITMAP + H_BITMAP;++i){
     13        for (U08 i=0; i< VOLTAGE_CHANNELS/8;++i){
    1414                usart_write_U08_bin(adc_channels_ready[i]);
    1515                usart_write_char(' ');
     
    1818
    1919        usart_write_str((pU08)"ad7719 status:\n");
    20         for (U08 i=0; i< CHANNEL_BITMAP;++i) {
     20        for (U08 i=0; i< RESISTANCE_CHANNELS/8;++i) {
    2121                usart_write_U08_bin(ad7719_enables[i]);
    2222                usart_write_char(' ');
    2323        }
    2424        usart_write_char('\n');
    25         for (U08 i=0; i< CHANNEL_BITMAP;++i){
     25        for (U08 i=0; i< RESISTANCE_CHANNELS/8;++i){
    2626                usart_write_U08_bin(ad7719_channels_ready[i]);
    2727                usart_write_char(' ');
     
    5757        usart_write_str((pU08)"\n printing voltages in mV:\n");
    5858        // output:      U08 adc_values[V_CHANNELS + I_CHANNELS + H_CHANNELS];
    59         for (U08 i=0; i< V_CHANNELS + I_CHANNELS + H_CHANNELS;++i) {
     59        for (U08 i=0; i< VOLTAGE_CHANNELS;++i) {
    6060                if (i%8 == 0) usart_write_char('\n');
    6161                adc_output(i, adc_values[i]);
     
    7272        usart_write_str((pU08)"\n printing measured resistance in kohms:\n");
    7373
    74         for (U08 i=0; i< TEMP_CHANNELS;++i) {
     74        for (U08 i=0; i< RESISTANCE_CHANNELS;++i) {
    7575                if (i%8 == 0) usart_write_char('\n');
    7676
Note: See TracChangeset for help on using the changeset viewer.