diff options
| author | Joshua Drake <Joshua.Ellis.Drake@gmail.com> | 2024-05-04 11:15:57 -0500 | 
|---|---|---|
| committer | Joshua Drake <Joshua.Ellis.Drake@gmail.com> | 2024-05-04 11:15:57 -0500 | 
| commit | f54fe1d4bfdec539ec9143d1ec9040bb737e850a (patch) | |
| tree | f667263b78f517dbab8ada8ce844538652271385 | |
| parent | 3ee1a69c65589a744b67f770001022a884fe32ba (diff) | |
Minor clean up.
| -rw-r--r-- | build/default/production/main.o | bin | 8896 -> 8908 bytes | |||
| -rw-r--r-- | build/default/production/mcc_generated_files/mssp2_i2c.o | bin | 19500 -> 19500 bytes | |||
| -rw-r--r-- | dist/default/production/memoryfile.xml | 4 | ||||
| -rw-r--r-- | main.c | 1 | ||||
| -rw-r--r-- | mcc_generated_files/mssp2_i2c.c | 2 | 
5 files changed, 4 insertions, 3 deletions
diff --git a/build/default/production/main.o b/build/default/production/main.o Binary files differindex 20c5e38..2ffe358 100644 --- a/build/default/production/main.o +++ b/build/default/production/main.o diff --git a/build/default/production/mcc_generated_files/mssp2_i2c.o b/build/default/production/mcc_generated_files/mssp2_i2c.o Binary files differindex 1a72c9e..ffcfcef 100644 --- a/build/default/production/mcc_generated_files/mssp2_i2c.o +++ b/build/default/production/mcc_generated_files/mssp2_i2c.o diff --git a/dist/default/production/memoryfile.xml b/dist/default/production/memoryfile.xml index 48256ad..9180b88 100644 --- a/dist/default/production/memoryfile.xml +++ b/dist/default/production/memoryfile.xml @@ -11,8 +11,8 @@      <memory name="program">        <units>bytes</units>        <length>16128</length> -      <used>4359</used> -      <free>11769</free> +      <used>4362</used> +      <free>11766</free>      </memory>    </executable>  </project> @@ -110,6 +110,7 @@ int main(void)          if(*timeoutcounter > 0x02) //Open contactors if I2C communication is broken.
          {
              Message_OUT(0, 0, 0);
 +            _LATB7 = 1; //Make sure activity light is off
              _LATB8 = 0;
          }
      //(desired150, desired68, relay_delay);
 diff --git a/mcc_generated_files/mssp2_i2c.c b/mcc_generated_files/mssp2_i2c.c index 580366b..6a7e51e 100644 --- a/mcc_generated_files/mssp2_i2c.c +++ b/mcc_generated_files/mssp2_i2c.c @@ -128,7 +128,7 @@ uint8_t yeah;  #define ARRAY_CNT 6 // Number of bytes in array
  uint8_t slaveAddress = 0x30; // 7-bit slave address
  uint8_t index = 0; // Array pointer
 -static uint8_t I2C_timeout = 0; //Number of timer iterations since clear
 +static uint8_t I2C_timeout = 10; //Number of timer iterations since clear
  uint8_t temp = 0; // Temp register
  uint8_t regAdd = 1; // First data byte was reg add
  uint8_t i2cArray[ARRAY_CNT] =
  | 
