Bump version and remove printf

This commit is contained in:
Andrew D'Angelo 2024-01-06 08:13:58 -06:00
parent 7c5d0a7c79
commit 44f8047287
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#define VERSION_MAJOR 3 #define VERSION_MAJOR 3
#define VERSION_MINOR 1 #define VERSION_MINOR 2
#define KEY_FIFO_SIZE 31 // number of keys in the public FIFO #define KEY_FIFO_SIZE 31 // number of keys in the public FIFO

View File

@ -5,7 +5,6 @@
#include <hardware/i2c.h> #include <hardware/i2c.h>
#include <hardware/irq.h> #include <hardware/irq.h>
#include <pico/stdlib.h> #include <pico/stdlib.h>
#include <stdio.h>
#define REG_ID_INVALID 0x00 #define REG_ID_INVALID 0x00
@ -33,7 +32,8 @@ static void irq_handler(void)
} }
if (intr_stat & I2C_IC_INTR_STAT_R_TX_ABRT_BITS) { if (intr_stat & I2C_IC_INTR_STAT_R_TX_ABRT_BITS) {
printf("Recovering from TX_ABRT (reason=%x)\r\n", self.i2c->hw->tx_abrt_source); // Recovering from TX_ABRT
// reason in self.i2c->hw->tx_abrt_source
self.i2c->hw->clr_tx_abrt; self.i2c->hw->clr_tx_abrt;
} }