fixed compiler warnings

pull/245/head
Daniel Wang 8 years ago
parent b17ac315ca
commit 8a13d21c67
No known key found for this signature in database
GPG Key ID: 0BF26F1F023D273A
  1. 1
      esp-link/cgioptiboot.c
  2. 1
      esp-link/main.c
  3. 1
      mqtt/mqtt.c

@ -648,6 +648,7 @@ static void ICACHE_FLASH_ATTR optibootUartRecv(char *buf, short length) {
responseLen -= 2; responseLen -= 2;
} }
armTimer(PGM_INTERVAL); // reset timer armTimer(PGM_INTERVAL); // reset timer
break;
default: default:
break; break;
} }

@ -137,6 +137,7 @@ user_rf_cal_sector_set(void) {
switch (system_get_flash_size_map()) { switch (system_get_flash_size_map()) {
case FLASH_SIZE_4M_MAP_256_256: // 512KB case FLASH_SIZE_4M_MAP_256_256: // 512KB
sect = 128 - 10; // 0x76000 sect = 128 - 10; // 0x76000
break;
default: default:
sect = 128; // 0x80000 sect = 128; // 0x80000
} }

@ -447,7 +447,6 @@ mqtt_send_message(MQTT_Client* client) {
// get some details about the message // get some details about the message
uint16_t msg_type = mqtt_get_type(buf->data); uint16_t msg_type = mqtt_get_type(buf->data);
uint8_t msg_id = mqtt_get_id(buf->data, buf->filled); uint8_t msg_id = mqtt_get_id(buf->data, buf->filled);
msg_id = msg_id;
#ifdef MQTT_DBG #ifdef MQTT_DBG
os_printf("MQTT: Send type=%s id=%04X len=%d\n", mqtt_msg_type[msg_type], msg_id, buf->filled); os_printf("MQTT: Send type=%s id=%04X len=%d\n", mqtt_msg_type[msg_type], msg_id, buf->filled);
#if 0 #if 0

Loading…
Cancel
Save