summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/alpine_cdc.c20
-rw-r--r--apps/plugins/disktidy.c6
-rw-r--r--apps/plugins/resistor.c2
3 files changed, 14 insertions, 14 deletions
diff --git a/apps/plugins/alpine_cdc.c b/apps/plugins/alpine_cdc.c
index 3290d5e851..bf8bfeaae1 100644
--- a/apps/plugins/alpine_cdc.c
+++ b/apps/plugins/alpine_cdc.c
@@ -490,16 +490,16 @@ void receive_timeout_isr(void)
490/* generate the checksum */ 490/* generate the checksum */
491unsigned char calc_checksum(unsigned char* p_msg, int digits) 491unsigned char calc_checksum(unsigned char* p_msg, int digits)
492{ 492{
493 int chk = 0; 493 int chk = 0;
494 int i; 494 int i;
495 495
496 for (i=0; i<digits; i++) 496 for (i=0; i<digits; i++)
497 { 497 {
498 chk ^= p_msg[i]; 498 chk ^= p_msg[i];
499 } 499 }
500 chk = (chk+1) % 16; 500 chk = (chk+1) % 16;
501 501
502 return chk; 502 return chk;
503} 503}
504 504
505 505
diff --git a/apps/plugins/disktidy.c b/apps/plugins/disktidy.c
index d42a62d469..366d4381a6 100644
--- a/apps/plugins/disktidy.c
+++ b/apps/plugins/disktidy.c
@@ -554,9 +554,9 @@ static bool save_config(const char *file_name)
554 { 554 {
555 for (i=0; i<tidy_type_count; i++) 555 for (i=0; i<tidy_type_count; i++)
556 { 556 {
557 rb->fdprintf(fd, "%s%s: %s\n", tidy_types[i].filestring, 557 rb->fdprintf(fd, "%s%s: %s\n", tidy_types[i].filestring,
558 tidy_types[i].directory ? "/" : "", 558 tidy_types[i].directory ? "/" : "",
559 tidy_types[i].remove ? "yes" : "no"); 559 tidy_types[i].remove ? "yes" : "no");
560 } 560 }
561 rb->close(fd); 561 rb->close(fd);
562 } 562 }
diff --git a/apps/plugins/resistor.c b/apps/plugins/resistor.c
index 87f6cfcb82..a0bd94911a 100644
--- a/apps/plugins/resistor.c
+++ b/apps/plugins/resistor.c
@@ -205,7 +205,7 @@ static enum color get_band_rtoc(int in_val)
205 205
206static char *get_tolerance_str(enum color color) 206static char *get_tolerance_str(enum color color)
207{ 207{
208 static char tolerance_str [14]; 208 static char tolerance_str [14];
209 rb->snprintf(tolerance_str, sizeof(tolerance_str), "%d%% tolerance", 209 rb->snprintf(tolerance_str, sizeof(tolerance_str), "%d%% tolerance",
210 band_data[color].tolerance); 210 band_data[color].tolerance);
211 return tolerance_str; 211 return tolerance_str;