CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

BME280 debug output help / now error on PIC24
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
towpew



Joined: 25 Sep 2015
Posts: 24
Location: sweden

View user's profile Send private message

Hurray PIC24 BME280 error looks be solved
PostPosted: Wed Jan 06, 2021 11:04 am     Reply with quote

Ttelmah wrote:
Personally I'd just change all references to 'char' to 'byte'. I've found this
to be the simplest thing. Only use 'char'' for things that are text. For all
things that want a 8bit integer and to work the same on PCB/PCM/PCH/PCD,
the byte data type is the easiest thing to use. Very Happy


It seems that when I change ALL char to byte in the bme280.c file
the problem disappear

I will test it more later this evening.

Thanks all for helping out.

//
towpew



Joined: 25 Sep 2015
Posts: 24
Location: sweden

View user's profile Send private message

Re: Hurray PIC24 BME280 error looks be solved
PostPosted: Thu Jan 07, 2021 12:20 pm     Reply with quote

towpew wrote:
Ttelmah wrote:
Personally I'd just change all references to 'char' to 'byte'. I've found this
to be the simplest thing. Only use 'char'' for things that are text. For all
things that want a 8bit integer and to work the same on PCB/PCM/PCH/PCD,
the byte data type is the easiest thing to use. Very Happy


It seems that when I change ALL char to byte in the bme280.c file
the problem disappear

I will test it more later this evening.

Thanks all for helping out.

//



It still working fine this change from char to byte.
//
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Fri Jan 08, 2021 1:51 am     Reply with quote

Good. Smile

I've made that my 'default' since I started using the PIC24/33 chips.
Anything that is used for handling a 'value' being read in from a device, and
wants 8 bit storage, instead of using 'char', always use 'byte'. It solves
a lot of issues that otherwise appear....
towpew



Joined: 25 Sep 2015
Posts: 24
Location: sweden

View user's profile Send private message

PostPosted: Sun Jan 10, 2021 12:57 pm     Reply with quote

Ttelmah wrote:
Good. Smile

I've made that my 'default' since I started using the PIC24/33 chips.
Anything that is used for handling a 'value' being read in from a device, and
wants 8 bit storage, instead of using 'char', always use 'byte'. It solves
a lot of issues that otherwise appear....


Ok Smile
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Jan 10, 2021 1:43 pm     Reply with quote

'default' ...definition....
the set of values some other programmer decided should be 'normal'......NOT you.....

the 'default' (aka standard) for serial communications on a PC was true RS232 using a 25 pin connector........NOW the 'default' is USB3, well today, it'll change in a few moments....

Jay Smile
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Mon Jan 11, 2021 1:04 am     Reply with quote

No, Jay, that is to 'compiler default'. I carefully said 'my default'..... Very Happy
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Jan 11, 2021 6:01 am     Reply with quote

hmm, well I guess 'default' is mine....sigh, getting old and had a newborn lamb stay overnight in my office.found out what you feed into a lamb eventually comes back out....
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Mon Jan 11, 2021 7:10 am     Reply with quote

That's true of an amazing number of newborn things... Very Happy
Must admit 'lamb in the office', is not one I've encountered. Had owls,
foxes, bats, ferrets, puppies, dogs, cats, snakes, squirrels, hamsters,
tortoises and rats at various points.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group