Skip to content

Conversation

@microbites0
Copy link
Contributor

Fixes #86

Changed CHRG_STATUS (PIN 34) logic from LOW to HIGH.

Per issue #86 discussion, CHRG on + FAULT off indicates normal charging:

  • HIGH = OK (charging functioning)
  • LOW = faulty state

Also initialized hardware pins in init.c and updated slate in telemetry_task.c

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index d097fdc..f602ffb 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -93 +93 @@ bool init(slate_t *slate)
-    
+
@@ -99 +99 @@ bool init(slate_t *slate)
-    
+
@@ -102 +102 @@ bool init(slate_t *slate)
-    
+
@@ -105 +105 @@ bool init(slate_t *slate)
-    
+
@@ -108 +108 @@ bool init(slate_t *slate)
-    
+
@@ -111 +111 @@ bool init(slate_t *slate)
-    
+

Have any feedback or feature suggestions? Share it here.

@microbites0 microbites0 changed the title Fix solar charger pin polarity: CHRG HIGH = OK (fixes #86) Hardware pins to telemetry_task.c, SAMWISE_FIXED_SOLAR_CHARGE state is reversed (fixes #86) Nov 15, 2025
microbites0 and others added 2 commits November 15, 2025 13:45
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index 88a4c92..c9d190c 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -98 +98 @@ bool init(slate_t *slate)
-    
+
@@ -101 +101 @@ bool init(slate_t *slate)
-    
+
@@ -104 +104 @@ bool init(slate_t *slate)
-    
+
@@ -107 +107 @@ bool init(slate_t *slate)
-    
+
@@ -110 +110 @@ bool init(slate_t *slate)
-    
+

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index 67ab826..a6949f8 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -100 +100 @@ bool init(slate_t *slate)
-    
+
@@ -103 +103 @@ bool init(slate_t *slate)
-    
+
@@ -106 +106 @@ bool init(slate_t *slate)
-    
+
@@ -109 +109 @@ bool init(slate_t *slate)
-    
+

Have any feedback or feature suggestions? Share it here.

src/init/init.c Outdated

gpio_init(SAMWISE_PANEL_A);
gpio_set_dir(SAMWISE_PANEL_A, GPIO_IN);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change

microbites0 and others added 5 commits November 15, 2025 13:49
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Only 2 out of 3 clang-format concerns fit within this pull request's diff.

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index c2a45ae..a0c9afe 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -102 +102 @@ bool init(slate_t *slate)
-    
+
@@ -105 +105 @@ bool init(slate_t *slate)
-    
+
@@ -108 +108 @@ bool init(slate_t *slate)
-    
+

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index 2eb8b05..1bc3d53 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -104 +104 @@ bool init(slate_t *slate)
-    
+
@@ -107 +107 @@ bool init(slate_t *slate)
-    
+

Have any feedback or feature suggestions? Share it here.

microbites0 and others added 5 commits November 15, 2025 13:50
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index 7ca1077..3f987ac 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -106 +106 @@ bool init(slate_t *slate)
-    
+

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index 0fcd440..612f0e7 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -105 +105 @@ bool init(slate_t *slate)
-    
+

Have any feedback or feature suggestions? Share it here.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index 792ffb3..13d3983 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -103 +103 @@ bool init(slate_t *slate)
-    
+

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index 4c50599..bb5402f 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -104 +104 @@ bool init(slate_t *slate)
-    
+

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index 10f5bca..cf457e7 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -102 +102 @@ bool init(slate_t *slate)
-    
+

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index 7c1e327..f446a61 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -102,3 +102 @@ bool init(slate_t *slate)
-     * Initialize gpio pins
-     */
-    ASSERT(init_gpio_pins());
+    *Initialize gpio pins * / ASSERT(init_gpio_pins());

Have any feedback or feature suggestions? Share it here.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index 9b9f34d..609a652 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -102,2 +102 @@ bool init(slate_t *slate)
-     * Initialize gpio pins
-    ASSERT(init_gpio_pins());
+    *Initialize gpio pins ASSERT(init_gpio_pins());

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/src/init/init.c b/src/init/init.c
index 8ee736a..f9881d0 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -102,3 +102 @@ bool init(slate_t *slate)
-     * Initialize gpio pins
-    ASSERT(init_gpio_pins());
-
+    *Initialize gpio pins ASSERT(init_gpio_pins());

Have any feedback or feature suggestions? Share it here.

@microbites0 microbites0 self-assigned this Nov 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Telemetry] Add reading from single hardware PINs into telemetry_task.c

2 participants