jlab-sensing / ENTS-node-firmware

Firmware for STM32 and ESP32 microcontrollers on the Soil Power Sensor board
MIT License
0 stars 3 forks source link

Fix lint ads #113

Closed ahmedfalah01 closed 1 month ago

ahmedfalah01 commented 2 months ago

Name/Affiliation/Title Ahmed Falah Fresh computer and communication graduate from faculty of engineering, Alexandria university, Egypt Contributor

Purpose of the PR Fixed linting errors for ads library

Development Environment Windows11 with Platform IO version 6.1.15

Test Procedure Run the following command in the terminal:

cpplint --recursive lib/ads

Additional Context Still had 3 linting errors in ads.c for using C-style cast (e.g., reading = (double)temp;). The recommended static_cast<double>(...) is not supported in C.

Relevant Issues part of #111