Fix board def mistakes and cast

This commit is contained in:
Scott Shawcroft 2023-09-20 11:45:45 -07:00
parent c86b3ae19f
commit d4000023d8
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 4MB
CIRCUITPY_ESP_PSRAM_SIZE = 8MB
CIRCUITPY_ESP_PSRAM_MODE = qio
CIRCUITPY_ESP_PSRAM_MODE = opi
CIRCUITPY_ESP_PSRAM_FREQ = 80m
CIRCUITPY_ESPCAMERA = 0

View File

@ -8,5 +8,5 @@ CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 4MB
CIRCUITPY_ESP_PSRAM_SIZE = 8MB
CIRCUITPY_ESP_PSRAM_MODE = qio
CIRCUITPY_ESP_PSRAM_MODE = opi
CIRCUITPY_ESP_PSRAM_FREQ = 80m

View File

@ -35,7 +35,7 @@ typedef enum {
static i2c_status_t i2c_status[I2C_NUM_MAX];
void i2c_reset(void) {
for (i2c_port_t num = 0; num < (int)I2C_NUM_MAX; num++) {
for (i2c_port_t num = 0; num < (i2c_port_t)I2C_NUM_MAX; num++) {
if (i2c_status[num] == STATUS_IN_USE) {
i2c_driver_delete(num);
i2c_status[num] = STATUS_FREE;