Skip to content

Commit 626add3

Browse files
rosterlohclaude
andcommitted
powerbread: drop unused pb_ui_get_mode, include errno.h explicitly
Final-review cleanup: both optional recommendations from the whole-branch review. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 8fa4ef3 commit 626add3

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

applications/powerbread/src/shell.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "sampler.h"
88
#include "ui.h"
99

10+
#include <errno.h>
1011
#include <stdlib.h>
1112
#include <string.h>
1213

applications/powerbread/src/ui.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ void pb_ui_set_mode(enum pb_mode mode)
4444
}
4545
}
4646

47-
enum pb_mode pb_ui_get_mode(void)
48-
{
49-
return (enum pb_mode)atomic_get(&req_mode);
50-
}
51-
5247
void pb_ui_step_mode(int dir)
5348
{
5449
int m = ((int)atomic_get(&req_mode) + dir + PB_MODE_COUNT) % PB_MODE_COUNT;

applications/powerbread/src/ui.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ enum pb_mode {
1818

1919
int pb_ui_init(void);
2020
void pb_ui_set_mode(enum pb_mode mode);
21-
enum pb_mode pb_ui_get_mode(void);
2221
void pb_ui_step_mode(int dir);
2322
void pb_ui_set_channel(uint8_t ch);
2423
uint8_t pb_ui_get_channel(void);

0 commit comments

Comments
 (0)