Skip to content

Commit 0ccc070

Browse files
committed
remove debug in page workflow
1 parent 3c4eba4 commit 0ccc070

File tree

1 file changed

+11
-4
lines changed
  • Firmware/pico-ice-default

1 file changed

+11
-4
lines changed

Firmware/pico-ice-default/main.c

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
int repl_last_char;
4747
bool repl_last_held;
4848

49-
static int repl_getchar(void) {
49+
static int repl_getchar(void)
50+
{
5051
int c;
5152

5253
if (repl_last_held) {
@@ -56,8 +57,10 @@ static int repl_getchar(void) {
5657

5758
// busy-wait with a slow delay: this is for interactive I/O, no need to be fast
5859
while ((c = getchar_timeout_us(10000)) == PICO_ERROR_TIMEOUT) {
59-
// call tud_task() since we are blocking, similar to preemptive multitasking
60+
// call tud_task() since we are blocking
61+
ice_led_blue(1);
6062
tud_task();
63+
ice_led_blue(0);
6164
}
6265

6366
if (c == '\r' || c == '\n') {
@@ -99,14 +102,16 @@ static bool repl_parse_newline(void)
99102
}
100103
}
101104

102-
static void repl_command_version(void) {
105+
static void repl_command_version(void)
106+
{
103107
if (!repl_parse_newline()) {
104108
return;
105109
}
106110
printf("pico-ice-sdk %s\r\n", VERSION);
107111
}
108112

109-
int main(void) {
113+
int main(void)
114+
{
110115
// Enable USB-CDC #0 (serial console)
111116
stdio_init_all();
112117

@@ -126,7 +131,9 @@ int main(void) {
126131
ice_led_init();
127132

128133
while (true) {
134+
ice_led_green(1);
129135
tud_task();
136+
ice_led_green(0);
130137

131138
printf("\x1b[1mpico-ice>\x1b[m ");
132139

0 commit comments

Comments
 (0)