Skip to content

Commit 706f809

Browse files
committed
Fix format warning
1 parent b402960 commit 706f809

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Adaptation of ["RCSwitch"](https://github.com/sui77/rc-switch) Arduino library t
55
Works on any **libc++** compatible system, such as macOS, FreeBSD, Linux, and even Windows.
66

77
[![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0)
8+
[![Build tests](https://github.com/latchdevel/rc-switch-lib/actions/workflows/BuildTest.yml/badge.svg)](https://github.com/latchdevel/rc-switch-lib/actions/workflows/BuildTest.yml)
89

910
Originally developed for Arduino framework, it has been ported to Raspberry Pi using the WiringPi library.
1011

example.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int main(){
3737
// pulse_list = mySwitch.sendTriState("00000FFF0F0F"); // tri-state code
3838

3939
// Optional: Display raw pulse list
40-
printf("raw_pulses[%lu]={",static_cast<unsigned int>(pulse_list.size()));
40+
printf("raw_pulses[%u]={",static_cast<unsigned int>(pulse_list.size()));
4141
pulse_list_t::iterator it=pulse_list.begin();
4242
while (it != pulse_list.end()){
4343
printf("%i",*it);
@@ -56,7 +56,7 @@ int main(){
5656

5757
// Optional: Display decoded pulse list
5858
unsigned int* timings = mySwitch.getReceivedRawdata();
59-
printf("dec_pulses[%lu]={",static_cast<unsigned int>(pulse_list.size()));
59+
printf("dec_pulses[%u]={",static_cast<unsigned int>(pulse_list.size()));
6060
for (unsigned index = 1 ; index < pulse_list.size(); index++){
6161
printf("%u,",timings[index]);
6262
}

0 commit comments

Comments
 (0)