//ld is 32 bits
printf("up_intval:%ldrn",device_set.upload_tem);
//d is 16 bits
printf("up_intval:%drn",device_set.upload_tem);+
If device_set.upload_tem is 32 bits, then the second print will cause problems, such as abnormal values.
Previous article:STM8S introduction (programming environment, burning, chip content)
Next article:STM8L052 Temperature Controller
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- C++ GUI Qt 4 Programming (Second Edition)
- TMS320F28027 ADC priority
- Unboxing and verifying BOX function through APP
- Thermostat reference design based on TI SimpleLink wireless MCU
- Pre-registration for the live broadcast with prizes | ST Data Center and Communication Network Power Management Solutions
- MSP430 - Key interrupt control small light flip
- [NXP Rapid IoT Review] Rapid IoT Studio: The First Step in Simple Programming
- Adafruit Funhouse Development Board
- GD32E231 DIY Contest (9) - Rewrite the key processing program
- 【Distributed temperature and humidity acquisition system】+WIFI data receiving module