InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.64k stars 904 forks source link

Reorder notification struct fields #1774

Closed minacode closed 12 months ago

minacode commented 1 year ago

This pull request is extracted from #1482 and changes the order for the notification struct fields to allow the creation of notifications using a string literal like this:

NotificationManager::Notifiation notification {
  "String literal with notification text",
  42,
  NotificationManager::Categories::SimpleAlert
};
github-actions[bot] commented 1 year ago
Build size and comparison to main: Section Size Difference
text 409300B 32B
data 996B 0B
bss 63372B 16B