mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-16 15:08:15 +08:00
修复代码错误
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user