Skip to content

Irregular use of F() macro. #41

Description

@H3wastooshort

The F() macro is used only sometimes. The RAM load would be decreased if it were to be used more regularly.

Example:

String GSMSimTime::syncFromServer() {
	gsm.print("AT+CNTPCID=1\r"); //Bad
	_readSerial();

	gsm.print(F("AT+CNTP\r")); //Good
	_readSerial();
	//delay(50);
	_readSerial(30000);

Was it just forgotten, or is there something preventing it's use?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions