修复代码错误

This commit is contained in:
nhkefus
2025-03-11 14:10:51 +08:00
parent a7f6e9379a
commit 3422912129
576 changed files with 39303 additions and 1012 deletions

View File

@@ -87,7 +87,7 @@ void mico_notify_WifiScanCompleteHandler( ScanResult *pApList, void * inContext
pApList->ApList[0].ssid[10] = '\0'; // truncate first 10 char
sprintf( str, "SSID :%10s\r\nPOWER:%10d",
pApList->ApList[0].ssid,
pApList->ApList[0].rssi );
pApList->ApList[0].ApPower );
mf_printf_pos( 0, 4, str );
scanap_done = true;
}

View File

@@ -87,7 +87,7 @@ void mico_notify_WifiScanCompleteHandler( ScanResult *pApList, void * inContext
pApList->ApList[0].ssid[10] = '\0'; // truncate first 10 char
sprintf( str, "SSID :%10s\r\nPOWER:%10d",
pApList->ApList[0].ssid,
pApList->ApList[0].rssi );
pApList->ApList[0].ApPower );
mf_printf_pos( 0, 4, str );
scanap_done = true;
}

View File

@@ -29,12 +29,6 @@ int sflash_read_ID( const sflash_handle_t* const handle, void* const data_addr )
return generic_sflash_command( handle, SFLASH_READ_JEDEC_ID, 0, NULL, 3, NULL, data_addr );
}
int sflash_enter_dpmode( const sflash_handle_t* const handle )
{
return generic_sflash_command( handle, SFLASH_DEEP_POWER_DOWN, 0, NULL, 0, NULL, NULL );
}
int sflash_write_enable( const sflash_handle_t* const handle )
{
if ( handle->write_allowed == SFLASH_WRITE_ALLOWED )

View File

@@ -62,16 +62,6 @@ typedef struct
*/
int init_sflash ( /*@out@*/ sflash_handle_t* const handle, /*@shared@*/ void* peripheral_id, sflash_write_allowed_t write_allowed_in );
/**
* @brief SPI flash enter deep sleep mode
*
* @param handle: handle of spi flash to init
*
* @return kNoErr : on success.
* @return kGeneralErr : if an error occurred
*/
int sflash_enter_dpmode( const sflash_handle_t* const handle );
/**
* De-initializes a SPI Flash chip