Switched method parameters for the sdCard begin statement
This commit is contained in:
parent
e36fca5326
commit
18e47f22d1
@ -121,7 +121,7 @@ boolean sdCardMountApi(WEBServer<WEBClient>::HttpRequestData &HRD, WiFiClient *w
|
|||||||
float *sdCardSize = (float *) &pV->pView->sdCardSize;
|
float *sdCardSize = (float *) &pV->pView->sdCardSize;
|
||||||
char buffer[200];
|
char buffer[200];
|
||||||
|
|
||||||
if(p->getSdCardManager().begin(p->getSdCardConfig().getSPISpeed(), p->getPinConfig().getSPI_sdCard_cs()))
|
if(p->getSdCardManager().begin(p->getPinConfig().getSPI_sdCard_cs(), p->getSdCardConfig().getSPISpeed()))
|
||||||
{
|
{
|
||||||
sprintf(buffer,"HTTP/1.1 200 OK\r\nContent-Type: application/json\r\n\r\n{ \"status\" : \"ok\", \"card\" : \"mounted\" }");
|
sprintf(buffer,"HTTP/1.1 200 OK\r\nContent-Type: application/json\r\n\r\n{ \"status\" : \"ok\", \"card\" : \"mounted\" }");
|
||||||
*sdCardSize = p->getSdCardManager().getSize(GBYTE);
|
*sdCardSize = p->getSdCardManager().getSize(GBYTE);
|
||||||
|
Loading…
Reference in New Issue
Block a user