Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/06/09 01:10
Read: times


 
#162116 - Not exactly as I coded
Responding to: ???'s previous message
Chris

I'm sorry, but....
You need to copy the declarations 'exactly' as laid out in my code snippet. I think you cut-pasted only what you thought you needed - bad idea. See this bit?
unsigned char i2c_transmit(unsigned char address, unsigned char *transmit_bytes, unsigned char MAX_NUMBYTE_TX[])
It's the very first line in the code window. Please check it again!

If you copy everything into the various files as shown, I do not think there would be any errors. Another reason for the compiler shouting out that transmit_bytes is unused is that it is really unused in your i2c_transmit routine.... :) You need to correct that too....

Jerson

List of 14 messages in thread
TopicAuthorDate
dynamic parameters in an I2C definition possible?            01/01/70 00:00      
   how about            01/01/70 00:00      
      trans_byte buffer?            01/01/70 00:00      
         something like:            01/01/70 00:00      
            Updated, but errors on my part            01/01/70 00:00      
               This            01/01/70 00:00      
                  I must be stuck on stupid            01/01/70 00:00      
                     I Think it is this            01/01/70 00:00      
                        Array of pointers to characters            01/01/70 00:00      
               Try this code            01/01/70 00:00      
                  Works great!...One question though            01/01/70 00:00      
                     The warning is real            01/01/70 00:00      
                     Not exactly as I coded            01/01/70 00:00      
                        Update......Problem solved            01/01/70 00:00      

Back to Subject List