Skip to content

Commit bd716b6

Browse files
committed
Create circuit.png
1 parent 5d76e54 commit bd716b6

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed
22.6 KB
Loading

firmware/chipignite/polysat/src/polysat.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,6 @@ void main() {
151151

152152
// Main loop - echo received characters and blink LED and
153153
while (1) {
154-
// // Check if data is available to read
155-
// if (uart_read_available()) {
156-
// // Read and echo back the character
157-
// uint8_t ch = uart_read();
158-
// uart_write(ch);
159-
// slip_send_packet(c, 1, SLIP_CMD_DATA, uart_write);
160-
// }
161-
162154
if (!pulse) {
163155
led_off();
164156
// Set GPIO 33 low (bit 1)

firmware/chipignite/polysat/src/slip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void slip_send_packet(const uint8_t* data, uint16_t data_len, uint8_t cmd, void
3535

3636
/* Write header to buffer */
3737
uint8_t* buffer = (uint8_t*)&hdr;
38-
for (uint16_t i = 0; i < sizeof(hdr); i++) { send_byte(buffer[i]); }
38+
for (uint16_t byte = 0; byte < sizeof(hdr); byte++) { send_byte(buffer[byte]); }
3939

4040
/* SLIP-encode the payload */
4141
for (uint16_t i = 0; i < data_len; i++) {

0 commit comments

Comments
 (0)