summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.c b/main.c
index 37ef329..1b8b264 100644
--- a/main.c
+++ b/main.c
@@ -85,13 +85,20 @@ static inline void print_config(void)
int main(void)
{
+ char s[20];
+ uint16_t template_count;
+
cli();
Soft_UART_init();
bit_set(DDRB,5);
sei();
- if (fpm_init())
+ if (fpm_init()) {
print_config();
+ template_count = fpm_getcount();
+ snprintf(s, 20, "Template count: %d", template_count);
+ uart_write(s);
+ }
while (1)
{