Comments (3)
You need to use the PRI* macros defined in <inttypes.h> to print fixed width types.
APP_LOG(APP_LOG_LEVEL_DEBUG, "parking status received: capacity=%"PRId32", occupancy=%"PRId32, capacity, occupancy);
For more information, see http://stackoverflow.com/questions/12120426/how-to-print-uint32-t-and-uint16-t-variables-value
from cloudpebble.
Thanks, I didn't know that.
Maybe the editor warning could point in this direction ?
from cloudpebble.
That warning comes from GCC, and at the point in compiling where it's complaining, it's already translated the type from the stdint.h typedef to the full type and lost the information to give you a better message.
from cloudpebble.
Related Issues (20)
- Resource previews cannot be found when using Edge
- "Serialisation of timeline item failed." when pushing timeline pins
- Github push: filling in a title and hitting "cancel" still makes a commit HOT 2
- "Code completion resync failed." HOT 2
- Cloudpebble forgets project settings HOT 4
- AutoPull and compile doesn't cause refresh of data on compilation-pane HOT 1
- Add Outline window to the Code Editor
- Unable to create/import files with multiple periods HOT 1
- Ctrl + F find function needs improvement
- Emulator boot failed: Unable to create emulator instance. HOT 3
- TypeScript support
- Configuration to keep the first newline after a pebble tag HOT 2
- Build breaks when a Pebblekit file is added to a Rocky.js project HOT 4
- Emulator not starting HOT 2
- Changing sdk version from 2 to 4 causes the images to disappear
- npm dependencies search doesn't find new packages
- up and down arrow key don't work in iOS Safari
- TypeError: Cannot read property 'message' of undefined HOT 2
- I need help to replicate CloudPebble
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudpebble.