We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc6ea1f commit 11a0871Copy full SHA for 11a0871
firmware/chipignite/polysat/src/polysat.c
@@ -89,7 +89,8 @@ void configure_io() {
89
90
// Initiate the serial transfer to configure IO
91
reg_mprj_xfer = 1;
92
- while (reg_mprj_xfer == 1);
+ while (reg_mprj_xfer == 1)
93
+ ;
94
}
95
96
/** @brief Delay in microseconds
@@ -168,7 +169,7 @@ void main() {
168
169
pulse = !pulse;
170
171
// For every non-zero element in the array, set back to zero and send a packet to the host
- for (uint32_t i = 0; i < ARRAY_SIZE; i++) {
172
+ for (uint32_t i = 0; i < (uint32_t)(sizeof(zero_array) / sizeof(*zero_array)); i++) {
173
if (zero_array[i] != 0) {
174
// When a non-zero element is found (due to radiation), send a packet to the host
175
struct {
0 commit comments