braydenanderson2014 / C-Arduino-Libraries

This repository contains C++ and Arduino Libraries that are lightweight and easy to use. All libraries were created/mimicked by me and chatgpt.
Apache License 2.0
13 stars 0 forks source link

SDList Appears to hang up in constructor. #30

Closed braydenanderson2014 closed 11 months ago

braydenanderson2014 commented 11 months ago

Describe the Issue None of the Library Serial Print calls seem to ever activate suggesting that the library is not functioning correctly.

Library Name and Version: Name: SD List Version: V1.0.1

Environment:

Library Source:

Expected Behavior Library should initialize and be ready for use when constructor is called.

Actual Behavior Nothing, Which is the problem.


#include <Arduino.h>
#include "Properties.h"
#include "MyDictionary.h"
#include "LinkedList.h"
#include "UnorderedMap.h"
#include "SDList.h"
#include "DoubleLinkedList.h"

SDList <String> strings(10, "pagefile.dat");
SDList <int> ints(10, "pagefile.dat");
void setup(){
  Serial.begin(115200);
  if(strings.sdAvailable()){
    strings.append("Hello");
    strings.append("World!");
    strings.append("!");
  }

  if(ints.sdAvailable()){
    ints.append(1);
    ints.append(2);
    ints.append(3);
  }

}

void loop(){

}

// Your code that triggers the error
Screenshots
If applicable, add screenshots to help explain your problem.

Additional Context
Add any other context about the problem here.

<!-- End of the issue report template. -->
braydenanderson2014 commented 11 months ago

Have been making major modifications, however issue still seems to be present.

braydenanderson2014 commented 11 months ago

Opened new issue with more detail.