Exemplo n.º 1
0
    void onGetCapacity(MscBotGetCapacityEvent& event) {

      if(_sdcard==nullptr)
        event.ready=false;            // the card was not initialised successfully
      else {

        // fill in this card's parameters

        event.blockSize=_sdcard->getBlockSizeInBytes();
        event.blockCount=_sdcard->getTotalBlocksOnDevice();
        event.ready=true;
      }
    }